Closed frankforpresident closed 5 years ago
@frankforpresident thanks for reporting this problem. It was fixed in v6.0.0. Please check if it works now as expected. Thanks for the example. Based on it I created new storybook entries π
@iulian-radu-at Awesome! I will try the fix on monday ππ
@iulian-radu-at,
The multi select is still missing the clear button when two or more items are selected. The single select is working fine. Overriding the selected values is also working as expected.
Are you running a different versions on different stories in your storybook? Because I can't reproduce this issue on the other clear demo.
@frankforpresident I see that I can reproduce in Storybook on GitHub the problem with the clean button not being displayed when there are changes on multi select. I will investigate why it is still happening. Thanks for checking it π
@frankforpresident Please check v6.0.1. It should do the fix for this problem. Thanks
Alright! It works π Thank you for the quick fix
I thank you πͺ π
Description When building an autocomplete component I've noticed that the isClearable property isn't adopted. Other properties like isDisabled, isMulti, isSearchable, isCreatable are working fine. If i try to overwrite the value with an external button the component is acting weird. When injecting null into single mode the value is NOT cleared and the clear button suddenly appears. When in multi mode, every selected item is delete except one.
Version 5.1.0
Expected Adding { isClearable: true } to SelectProps will activate a clearable field with a clear button to clear the value.
Actual No clear button is visible. Even when isMulti is active and more than two values are selected.
My Custom HOC
Component test with an external button