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

input editing issue #194

Open skrappyzz opened 7 years ago

skrappyzz commented 7 years ago

if we edit already entered date from the month, for example, then everything already entered will be just moved out of the field. Can we prevent this behavior?

For example: we have this date 10/22/2016 and we want to change 22 to 23. We click betwen 2 and 2 and enter 3, so the date will be 10/23/2201, but i want to see 10/23/2016.

I found this behavior in this lib http://sanniassin.github.io/react-input-mask/demo but it's for React.

gabguy commented 7 years ago

+1