Autocomplete: Clear button in input, Chip no multiple selection, Customize the label and result search, information that no element was found #17414
Labels
component: autocomplete
This is the name of the generic UI component, not the React module!
Summary 💡 and Motivation 🔦
It would be very useful to have a button with an X inside the input field, which when you click empty the entire input field.
Being able to also have the chips even if it is not a multiple selection would be very interesting, to be able to understand that the element has been correctly selected.
Instead of having at the moment, if an element is found then the text is shown.
If you use
react-autosuggest
and you accidentally delete a character, the text is not the original one of the label, so it is not clear if the element is still valid or not, that is if it is selected.If you use
downshift
and delete a character or all the text by mistake, the text returns as before, as if it had not been deleted, so it is not clear if the element is still selected or not, resuming the speech of Autocomplete downshift delete text #17409 .In this case the correct form in my opinion would be to delete the text, if the user deletes it all, delete a character if the user deletes a character and does not return the text as it was at the beginning selected.
For this reason, if you also had the chips for a single selection, it would be very useful.
Surely the space occupied by the Chip must be for the full length of the input field.
In order to customize the label I intend to be able to put a small image inside the input field, for example, which could identify the selected user.
Same thing I mean also for the search results.
It would be very useful to have the type of information that the result you are looking for was not found, in order to allow the user to be able to help.
For example, a user or object is not found, you could inform a user that no results were found, with the request to add that information himself.
If you click then, it will activate a function that the user can assign a given event, for example it could open a dialog to insert user.
Examples 🌈
@oliviertassinari :
I see the examples shown in the images from the following project:
Link
The text was updated successfully, but these errors were encountered: