igorescobar / jQuery-Mask-Plugin

A jQuery Plugin to make masks on form fields and HTML elements.
http://igorescobar.github.io/jQuery-Mask-Plugin/
Other
4.77k stars 1.42k forks source link

Cursor jumps on marked text with Optional digits #736

Open andreknieriem opened 4 years ago

andreknieriem commented 4 years ago

Have you take a look into our docs?

Yes

Make sure your read this before opening a new issue:

Done

Device

All

Browser (and version)?

All

Functional jsfiddle exemplifying your problem:

http://jsfiddle.net/igorescobar/6pco4om7/

Describe de problem depth:

Go to the Fiddle and type in 192.192.192.192 in the ip-address field. If you now mark for example the second 192 and start typing to get a 192.123.192.192 the cursor jumps and you get a 192.1.23 and so on.