quasar icon indicating copy to clipboard operation
quasar copied to clipboard

autocomplete demo on Android 7.1 shows list 2 times

Open fsgiudice opened this issue 9 years ago • 16 comments

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

fsgiudice avatar Jan 12 '17 21:01 fsgiudice

URL: http://quasar-framework.org/quasar-play/android/index.html#/showcase/form/autocomplete

fsgiudice avatar Jan 12 '17 21:01 fsgiudice

@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.

rstoenescu avatar Jan 13 '17 08:01 rstoenescu

Also, please supply a screenshot. Thanks so much!

rstoenescu avatar Jan 13 '17 08:01 rstoenescu

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.

1_keyboard_active 2_keyboard_hidden

fsgiudice avatar Jan 13 '17 14:01 fsgiudice

enter is not required. will investigate. can't reproduce with my nexus 5 (android 6)

rstoenescu avatar Jan 13 '17 16:01 rstoenescu

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 avatar Jan 14 '17 08:01 fsgiudice

@fsgiudice can we talk on gitter to solve this faster? Can't reproduce it no matter what I do :(

rstoenescu avatar Jan 16 '17 20:01 rstoenescu

Can you guys check edge version if it has this behavior anymore? It should be fixed now.

rstoenescu avatar Jan 28 '17 18:01 rstoenescu

There's one slight change to this component. Not displaying the loading part anymore. Mimicking Google Places Autocomplete feature.

rstoenescu avatar Jan 28 '17 18:01 rstoenescu

Hi @rstoenescu, It still happens I'll try to upload a video Francesco

autocomplete_error

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

fsgiudice avatar Jan 29 '17 17:01 fsgiudice

I can confirm this issue

mygnu avatar Jan 30 '17 01:01 mygnu

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 :)

rstoenescu avatar Jan 30 '17 23:01 rstoenescu

Root caused it in Search component. Autocomplete without using Search component works correctly.

Working on a solution.

rstoenescu avatar Jan 31 '17 17:01 rstoenescu

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-width prop has been removed. It's set automatically.
  • delay prop has been renamed to debounce for 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.

rstoenescu avatar Feb 01 '17 14:02 rstoenescu

@fsgiudice & @mygnu can you test with edge version and confirm this is fixed, pls? Thanks!

rstoenescu avatar Feb 01 '17 14:02 rstoenescu

@rstoenescu, it seems ok now. Thank you

fsgiudice avatar Feb 04 '17 11:02 fsgiudice