Inputmask
Inputmask copied to clipboard
Mask does not alternate back after deleting digit
I currently have this mask configured:
$('#phone').inputmask({mask:['(99) 9999-9999', '(99) 9-9999-9999'], removeMaskOnSubmit:false, clearmaskonlostfocus:true});
If I type any number with 10 digits, it works fine, and so does with 11 digits. However, if I type 11 digits and delete any digit, the mask does not alternate back.
Here's a jsfiddle: https://jsfiddle.net/6usy0chs/