guillaumepotier / Garlic.js

Automatically persist your forms' text and select field values locally, until the form is submitted.
http://garlicjs.org/
Other
2.36k stars 176 forks source link

Does not correctly record the field data with the phone type #130

Open DmitriyRomanov-front opened 4 years ago

DmitriyRomanov-front commented 4 years ago

There is a problem with the input field with the phone type. I use for this field - jquery.maskedinput.js Code for this field: $('body').on('focus', 'input[name=\'phone\']', function(){ $(this).mask('+7 (999) 999-99-99'); }); Everything is fine here. But Garlic.js doesn't work correctly. The value from this field is written without the last digit: "+7 (111) 111-11-1_" Сan you help me with this?