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

issue with formatting in mobile chrome #41

Closed
ReezFtw opened this issue May 10, 2017 · 3 comments
Closed

issue with formatting in mobile chrome #41

ReezFtw opened this issue May 10, 2017 · 3 comments

Comments

@ReezFtw
Copy link

ReezFtw commented May 10, 2017

I testing this in mobile chrome (android) latest version.
if i type digits from 1 till 0 in mask (999) 999-9999, then result will be (234) 789-0 (in your demo)
it seems that symbols '(', ')', ' ', '-' in the mask dont count when entering numbers

@ReezFtw
Copy link
Author

ReezFtw commented May 11, 2017

I tried to fix that. There sample of code https://jsfiddle.net/7ck4Lroy/ , fix at 45 line:
setTimeout(() => trigger(el, 'input'), 0);
Please, try this in android chrome browser in both version of code.
Also checked it on iphone safari

@probil
Copy link
Owner

probil commented May 11, 2017

Thanks @myrzz0r for investigation. I will check and merge it soon

@paraboul
Copy link

Bump :)
Looks like the same issue than #61

I indeed workaround by making the call to updateMask asynchronous. Not sure if this can lead to some other side effect though.

@probil any idea?

Thanks

probil added a commit that referenced this issue Feb 13, 2018
Run update event async on mobile chrome only
Fixes #41 #61
@probil probil added this to the 1.3.2 milestone Feb 14, 2018
@probil probil closed this as completed in 12205fd Feb 14, 2018
@probil probil moved this from Backlog to In Review in v2 Feb 14, 2018
@probil probil moved this from In Review to DONE in v2 Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
v2
DONE
Development

No branches or pull requests

3 participants