A single / multiple, categorizable, customizable, localizable and searchable item picker (drop-down) component for react native which supports both Android & iOS.
I noticed that there’s currently no functionality to clear the search field after selecting an item when both multiple and searchable are true.
I recently implemented this feature in my project, and I believe it would be a valuable addition to our package as well. I also found some open issues related to this functionality:
Hey @hossein-zare ,
I noticed that there’s currently no functionality to clear the search field after selecting an item when both
multiple
andsearchable
aretrue
.I recently implemented this feature in my project, and I believe it would be a valuable addition to our package as well. I also found some open issues related to this functionality:
Issue #622 Issue #750
In this PR, I’ve added a new prop called
clearSearchFieldOnSelect
. This will clear the search field if the following conditions are met:clearSearchFieldOnSelect
should betrue
multiple
(picker) should betrue
If all conditions are satisfied,
clearSearchFieldOnSelect
will clear the search field.Please let me know if you have any feedback or if there are any changes needed!