Hello,
Disabling an option doesn't work anymore.
The documentation says we should just add a disabled: true to the options to make it grayed but now it's not working, even by setting isOptionDisabled={() => false}.
Any ideas?
Hi,
Can you point the link to the documentation where it states that passing disabled property to the options marks it as disabled?I can not find it.
Anyway, isOptionDisabled works, here is working example.
Your function return false so the option is not disabled.
Cheers!
@TheSuperFly, as specified by @smoleniuch above, we expose an isOpbionDisabled prop of the following shape (option) => !!option.isDisabled, which defaults to checking for a 'isDisabled' property on your option.
@gwyneplaine, but the document says:
You can use a disabled property to indicate whether the option is disabled or not.
This might misleading other peoples, thx!!!
The examples use a 'disabled' property which was misleading.
@dlikhten Absolutely!!! I was stuck there because of the example!!!
Most helpful comment
@gwyneplaine, but the document says:
You can use a disabled property to indicate whether the option is disabled or not.This might misleading other peoples, thx!!!