JQuery mask erases the last character of an input element masked to ip address
I am using the jquery.mask to format an input with ip address. See the code below:
- window.jQuery('.ip-component').mask('099.099.099.099');
The problem is that when I enter a ip address like this "010.230.230.6" (it's a valid ip address) and change focus to another element, the value of input element changes to "010.230.230", it erases the last character.
I have the mask keep the value and check it as a valid value.