Closed grigoriy-ivanov closed 3 months ago
@tabuna Hi!
Hi @grigoriy-ivanov
Thank you for bringing this to attention. I believe we should take the opposite approach and implement a method that cancels field clearing instead of enabling it. In my opinion and experience, enabling clearing will likely be required more frequently.
Would it be feasible to make this behavior the default without an option? What are your thoughts on this? Could you update the pull request accordingly?
Description:
This pull request adds a new feature to improve the user experience when searching within lists, particularly in the context of multiple selects. When a user selects an item from the search results, a portion of the search phrase remains, which may need to be removed to search for the next item.
This feature introduces an option to clear the search phrase automatically after an item is selected. This enhancement streamlines the process of selecting multiple items from a list by reducing the manual effort required to clear the search phrase between selections.
Link to related issue: https://github.com/orchidjs/tom-select/issues/543