Fixed disabled options for SelectInput

pull/7364/merge
Bogdan 6 months ago
parent ccbc8f591b
commit fa1d6ad109

@ -52,6 +52,7 @@ class SelectInput extends Component {
const { const {
key, key,
value: optionValue, value: optionValue,
isDisabled: optionIsDisabled = false,
...otherOptionProps ...otherOptionProps
} = option; } = option;
@ -59,6 +60,7 @@ class SelectInput extends Component {
<option <option
key={key} key={key}
value={key} value={key}
disabled={optionIsDisabled}
{...otherOptionProps} {...otherOptionProps}
> >
{typeof optionValue === 'function' ? optionValue() : optionValue} {typeof optionValue === 'function' ? optionValue() : optionValue}

Loading…
Cancel
Save