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

Older safari browsers: mask placeholder option #393

Closed
Wendtly opened this issue Mar 16, 2016 · 4 comments
Closed

Older safari browsers: mask placeholder option #393

Wendtly opened this issue Mar 16, 2016 · 4 comments

Comments

@Wendtly
Copy link

Wendtly commented Mar 16, 2016

This looks related to issue #135.

Using a mask with placeholders like
$('#date_of_birth').mask('00/00/0000');
I expect that if I type 12041963 that I should get "12/04/1963".
However, in older Safari on IOS, I get the following instead: "12/41/6390".

Any version of mobile Safari prior to 7.0 exhibits this behavior, so any stock iPhone <= 5, and any iPad that's not an Air or Mini model. [Recent market data here: https://david-smith.org/iosversionstats/, but the percentage is not insignificant]

(thanks to crossbrowsertesting.com)

@Wendtly
Copy link
Author

Wendtly commented Mar 17, 2016

So that it's clear what the issue is, here's an example of typing in a date (12/04/1963) where ^ indicates cursor position:

  • 1^
  • 12^
  • 12/^0 (cursor moves left one character after 3rd character typed (first '/' position)
  • 12/4^0
  • 12/41/^0
  • 12/41/^90 (cursor moves left another character after 6th character typed (second '/' position)
  • 12/41/6^90
  • 12/41/63^90

Hope this helps.

@igorescobar
Copy link
Owner

Please, provide an jsiddle.

@Wendtly
Copy link
Author

Wendtly commented Mar 17, 2016

I just loaded up your website (http://igorescobar.github.io/jQuery-Mask-Plugin/) in an older iPad, then tried the "Mask placeholder option" field. I then ran further tests through crossbrowsertesting.com, but always against your website

@Wendtly
Copy link
Author

Wendtly commented Apr 1, 2016

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

2 participants