Open donysukardi opened 3 years ago
Hmmm... seems filterOption
should also block selection by typing. I guess return empty list which pass the tags
block.
It was working on antd@3 https://codesandbox.io/s/antd-tags-disabled-warning-antd3-wp0nw. When you type disabled option, it doesn't actually select it.
Reproduction link
Steps to reproduce
Set disabled on Option for
<Select mode="tags">
. It's currently already working as expected,Except for the following issues,
filterOption={() => false}
, the custom option doesn't inherit disabled propertyWhat is expected?
Select mode="tags" should support disabled option as it was working in antd@3. Warning shouldn't be shown.
What is actually happening?
disabled doesn't get propagated to the autocomplete option when using filterOption