Fixed disabled options for SelectInput

This commit is contained in:
Bogdan committed 2025-04-08 21:53:35 +03:00
1 parent a362dab503
commit 55763dae43
1 file changed
+2
@@ -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}