Fixed disabled options for SelectInput

This commit is contained in:
Bogdan 2024-08-15 22:10:48 +03:00
parent ccbc8f591b
commit fa1d6ad109

View file

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