angular-ui / ui-mask

Mask on an input field so the user can only type pre-determined pattern
https://htmlpreview.github.io/?https://github.com/angular-ui/ui-mask/master/demo/index.html
MIT License
391 stars 257 forks source link

Bug: caret position after ctrl+v is 3 characters behind #193

Open feelunreal opened 8 years ago

feelunreal commented 8 years ago

I'm using: unique-credit-card ui-mask="9999 9999 9999 9999" ui-mask-placeholder-char="space"

And after insert credit card number with Ctrl+V, caret position is 3 characters behind of end of string.

sphanley commented 7 years ago

It sounds like this would be fixed by this relatively old pull request: https://github.com/angular-ui/ui-mask/pull/183

I wonder if it can get accepted?

travist commented 7 years ago

This may also solve this problem.

https://github.com/angular-ui/ui-mask/pull/200

k-one-o-two commented 7 years ago

Just to bump it: https://github.com/angular-ui/ui-mask/pull/183 will really solve the problem: I also had one and made this change to fix it

ghost commented 7 years ago

Is this still being maintained? I would love to get this fix