Thanks to visit codestin.com
Credit goes to github.com

Skip to content

v-model cant reflect input value in wechat on iphone #5020

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

Closed
gaecom opened this issue Feb 27, 2017 · 5 comments
Closed

v-model cant reflect input value in wechat on iphone #5020

gaecom opened this issue Feb 27, 2017 · 5 comments

Comments

@gaecom
Copy link

gaecom commented Feb 27, 2017

test environment

app(or wechat) on iphone

Vue.js version

1.0 version

Reproduction Link

visit the page in wechat on iphone

Steps to reproduce

http://jsbin.com/kiquvesiju/edit?html,js,output

  1. visit the page in wechat on iphone
  2. switch to chinese ime(input method)
  3. input any chinese without entering(hit) "确认/OK" and jump to next input field
  4. Alerted message when hit the "echo a1" button is empty.

What is Expected?

expected echo data is your input message

What is actually happening?

Alerted message when hit the "echo a1" button is empty.

@posva posva added the 1.x label Feb 28, 2017
@posva
Copy link
Member

posva commented Feb 28, 2017

I cannot test myself but I saw you were using an outdated version of Vue 1. Please test with the updated version

@HerringtonDarkholme
Copy link
Member

HerringtonDarkholme commented Mar 3, 2017

Hi @gaecom . I found this behavior is IME specific. That is, Chinese IME will not input any characters without confirmation. The same behavior can be produced on plain input and various websites, e.g. GitHub.
If you change another IME like Japanese IME, it will work as expected.

I wonder it can be fixed in JS library.

@yyx990803
Copy link
Member

FYI ignoring composition events on desktop is necessary to ensure correct syncing behavior. Not sure if this is even possible to fix if the user does not finish composition.

@posva
Copy link
Member

posva commented Apr 4, 2017

@HerringtonDarkholme Do you think we can close this?

@HerringtonDarkholme
Copy link
Member

@posva Yes I think so.

If some one has come up with a new solution, we can open a new issue. For now I don't think there is a panacea.

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

4 participants