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
Form Input component isn't change the value on predictive text #4724
Form Input component isn't change the value on predictive text #4724
Comments
This is probably related to the composition mode on the input event + change event. Some mobile keyboards switch to |
This is a similar (or same?) issue: vuejs/vue#9299 |
Yeat it is related... note that we can't use standard vue |
I just tried on Samsung mobile with Chrome and autocomplete for suggested words is working for me. Are you using the default keyboard or google keyboard (GBoard)? |
@nevadavid Could you try testing the input here https://deploy-preview-4739--bootstrap-vue.netlify.com/docs/components/form-input/ |
Actually, I don't think the above PR will fix the issue, after reading more on how GBoard handles predictive text (using Composition events instead of input/change events like other mobile keyboards do), although it will fix other issues where |
@tmorehouse I am using default Android keyboard, it's still not working. |
Still not working, v2.7.0 |
In case anyone else runs into this, I've found the following workaround: <b-form-input type="text" @input.native="val = $event.target.value"></b-form-input>
|
So when I enable the "Show correction suggestions" (or similar function on your phone) and type any characters on
<b-form-input>
, the input isn't changes except when I push space.Expected behavior
Change value immediately when I type any character on predictive mode.
Versions
Libraries:
Environment:
There is my solution: https://codepen.io/nevadavid/pen/mdJbmgJ
(This is a very lightweight example, focus on the solution. For test I added a native input.)
It works well.
The text was updated successfully, but these errors were encountered: