diff --git a/components/lib/dropdown/Dropdown.js b/components/lib/dropdown/Dropdown.js index 5a5f3fb09c..b625b468b2 100644 --- a/components/lib/dropdown/Dropdown.js +++ b/components/lib/dropdown/Dropdown.js @@ -614,15 +614,20 @@ export const Dropdown = React.memo(React.forwardRef((props, ref) => { }); const createHiddenSelect = () => { - const placeHolderOption = ; - let selectedValue = selectedOption ? getOptionValue(selectedOption) : ""; - const option = selectedOption ? : null; + let option = { value: '', label: props.placeholder }; + + if (selectedOption) { + const optionValue = getOptionValue(selectedOption); + option = { + value: typeof optionValue === 'object' ? props.options.findIndex(o => o === optionValue) : optionValue, + label: getOptionLabel(selectedOption) + } + } return (
- + ;
)