-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document android v-model quirk #1798
Conversation
This is great to have in the docs! One small thing that I would like to point out is that the issue is actually not the way android works. Instead the issue is how vue works on andriod. Instead of listening to the |
@richrd Thanks for the info, I've changed the wording. |
Pinging @chrisvfritz and @posva as I wasn't involved in the original issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure the message is explicit enough. Wasn't the original problem that the value won't be updated until the autocomplete value is selected on any device? If it's not, I may be missing something
@posva The value won't be updated on Android until the autocomplete is selected/dismissed - either from space, backspace, closing the keyboard or just tapping the suggestion. It works as expected if autocomplete is switched off. What would you like the message changed to? |
To me, this is something common to any device, not just Android. I'm confused by why this would happen only in Android |
I'm not quite sure what criteria vue uses to decide to use I just tested this on Browserstack, and wasn't able to reproduce it on iOS (but I don't have a physical iPhone right now to verify that). I definitely happens on Android. |
@posva I've just tried on an iPhone and iPad and it updates as I type. Is it this part that handles it? |
@danstewart that |
but what kind of autocomplete is treated as composition? |
@posva Sorry, not sure what you're asking? |
Excellent question. I don't have any definitive answer but at least on my OnePlus 3 (using googles Gboard and chrome) any input that gives at least one autocomplete suggestion is considered composition. Some tests:
|
I'm trying to understand what happens 😆 I don't have an android to test right now but I cannot visualize the problem. |
Yes, that's pretty much the case. Here's a video https://lounge.bittemple.org/uploads/bd55166ca332588b/2018_09_16_19_28_03.mp4 |
Now I get it! So it's the keyboard actually doing composition while writing words. In that case. It may be better combining the tip with the previous one. WDYT @phanan @chrisvfritz ? |
This is a great addtiion! @posva makes a good point, it does seem a little weird to have two tips in a row. What do people think of combining them with bullet points under a heading? |
Just stumbled across this as well. According to https://en.wikipedia.org/wiki/Input_method - composition is only really required for Chinese, Japanese, Korean and Indic characters, so for mostly English-applications the default behaviour of I personally think Anyway, for the time being, instead of e.g. v-bind:value="query"
v-on:input="query = $event.target.value" |
Coming back to this, it's not accurate as a description. It's not relative to Android but to GBoard keyboard (default keyboard) in Android, which does, for some reason, use composition when suggesting words. As stated in many issues, current v-model is working as expected. |
See vuejs/vue#8723