-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Caret issue on mobile chrome leading to incorrect input #61
Comments
I'm also seeing this. Using v-mask="'£######'", all works fine on desktop but in Chrome on mobile the first character flips infront of the subsequent chars. Eg entering "1234" results in "2341". |
Looks like only Samsung devices affected by this issue. I have tested with Galaxy s5 mini. |
@shrpne this is related to the Chrome version. Currently testing on an updated chrome on Android O (e.g. Google pixel) |
Same here, using a Xiaomi device and chrome 61. But using an Asus device with chrome 61 works fine. |
Hello, I'm having the same problem on Chrome mobile, and on Android 8 .. |
Seems like related to #41 |
I'm experiencing this issue as well. According to issue 41, it looks like this has been going on for a while. Any updates @probil? V-mask has worked so well up until this point! |
@lndsy-cherry I will try to reproduce and fix today (approx. in an hour) |
Thanks so much for the quick reply!! |
@lndsy-cherry I can't reproduce it on my android phone. :(
Please, let me know about the result of the testing. |
@probil I just tested and that fix worked like a charm! Please merge and thank you so much again for this! :) |
Fixed in |
@probil it looks like some Android+Chrome devices are still experiencing an issue (I was testing on a Galaxy S5 earlier and noticed some cursor movement when typing a simple mask like ###-###), though it seems like there is no issue on an emulated Android+Chrome experience. I see in your code you're using initEvent in the trigger function, yet this looks to be a deprecated feature (https://developer.mozilla.org/en-US/docs/Web/API/Event/initEvent). I'm wondering if this may be affecting this. Would you have any plans to update the event triggering used? |
@lndsy-cherry |
Trying a simple mask (##/##) on mobile chrome.
The caret positions itself before the '/' and stays one char behind (entering 1234 actually displays 12/43)
The text was updated successfully, but these errors were encountered: