orchidsoftware / platform

Orchid is a @laravel package that allows for rapid application development of back-office applications, admin/user panels, and dashboards.
https://orchid.software
MIT License
4.26k stars 631 forks source link

Add ability to remove input text in Select and Relation fields #2797

Closed grigoriy-ivanov closed 3 months ago

grigoriy-ivanov commented 5 months ago

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.

image

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

grigoriy-ivanov commented 3 months ago

@tabuna Hi!

tabuna commented 3 months ago

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?