quasar icon indicating copy to clipboard operation
quasar copied to clipboard

Autocomplete allow no selection

Open jkole opened this issue 9 years ago • 1 comments

It appears that (on desktop at least) the Autocomplete component does not permit the option of 'no selection'. In other words, as soon as autocomplete predictions are available, the selectedIndex is set to 0 (the first prediction). This is not ideal since it precludes use cases where we want to perform a different search based on the search text if the user hasn't selected an autocomplete suggestion. For an example, see the functionality of the search box in google maps.

I have tried several workarounds, including calling setCurrentSelection(-1) on @open. Unfortunately, this immediately closes the popover. If there is a feature or workaround I'm missing, please let me know. Otherwise, please consider this a feature request. I'd be happy to do a PR.

jkole avatar Nov 02 '17 14:11 jkole

This is fixed in 0.15.5.

rstoenescu avatar Mar 03 '18 03:03 rstoenescu