autocomplete demo on Android 7.1 shows list 2 times
Hi, Using quasar-framework.org from my Nexus 6p, under Android demo part from autocomplete, I got popover list displayed 2 times: first when keyboard is on screen, 2nd when keyboard hides. Francesco
URL: http://quasar-framework.org/quasar-play/android/index.html#/showcase/form/autocomplete
@fsgiudice Hi, could you do a test please? On your Quasar clone, can you git pull and "npm run dev" then visit the autocomplete page with your Nexus? Is there a problem anymore? Have made a few enhancements to Modals and Popovers.
Also, please supply a screenshot. Thanks so much!
Hi @rstoenescu, attached screenshots from my repo. Same behavior. In first I wrote 'fre' chars and 'enter'. On 'enter' autocomplete makes search again, then it shows second image.

enter is not required. will investigate. can't reproduce with my nexus 5 (android 6)
Sorry, repeating steps I see that not on enter key, but on selecting item the keyboard is hidden, but the search is repeated as for picture 2.
@fsgiudice can we talk on gitter to solve this faster? Can't reproduce it no matter what I do :(
Can you guys check edge version if it has this behavior anymore? It should be fixed now.
There's one slight change to this component. Not displaying the loading part anymore. Mimicking Google Places Autocomplete feature.
Hi @rstoenescu, It still happens I'll try to upload a video Francesco

After typed "Al" I select first name (Albania), so keyboard was closed, but autocomplete windows was displayed again. Tested against last 0.13 quasar play
I can confirm this issue
Finally set up an emulator with Android 7.1. Working with it is a pain. But, I managed to reproduce the issue. For some reason it seems that when Google Keyboard gets closed it sets the value again on the input (in this case "Al" which overrides the value set by Quasar). So you type "Al", click outside of keyboard --> Quasar sets "Albania" then Google keyboard sets "Al" back. Will investigate more and write a workaround if necessary. Thanks for your patience :)
Root caused it in Search component. Autocomplete without using Search component works correctly.
Working on a solution.
Pushed fix to edge.
- New Popover method "reposition()"
- Fix race condition in Search
- Lots of improvements & fixes for Autocomplete (still not 100% ready for iOS)
Some small changes for Autocomplete:
set-widthprop has been removed. It's set automatically.delayprop has been renamed todebouncefor consistency.- When using an input with its own debounce (like Search component), set
:debounce="0"on the Autocomplete otherwise you get input model debounced twice.
Examples:
<q-autocomplete v-model="terms" @search="search" @selected="selected" :debounce="0">
<q-search v-model="terms" placeholder="Start typing a country name" />
</q-autocomplete>
There is still a small issue with Autocomplete on iOS because when opening keyboard the Popover overlaps input field. Will fix asap.
@fsgiudice & @mygnu can you test with edge version and confirm this is fixed, pls? Thanks!
@rstoenescu, it seems ok now. Thank you