Skip to content
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

v-model on mobile not updating until a space is pressed #34

Open
c0rnonthec0bb opened this issue Aug 30, 2020 · 2 comments
Open

v-model on mobile not updating until a space is pressed #34

c0rnonthec0bb opened this issue Aug 30, 2020 · 2 comments

Comments

@c0rnonthec0bb
Copy link

Due to this issue with Vue, on some mobile browsers the v-model binding doesn't update until the user types a space.

The fix is very easy, replace v-model="val" with :value="val" @input="val = $event.target.value" in TextareaAutosize.vue. (Yes, this should be exactly what v-model does, but for whatever reason, due to the referenced issue above, it doesn't.)

@vallemar
Copy link

It keeps happening in vue 3, it is a behavior expected by vue so it seems that it will continue like this ... I have opened this same problem.

@monsdroid
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants