Open cyrilchapon opened 6 years ago
@cyrilchapon ,
Do you also have this on the demo page? Can you create a jsfiddle for it?
I have a similar problem on an iPad running iOS 11.4.
Inputmask({ placeholder: "MM/DD/YYYY", alias: "datetime", inputFormat: "mm/dd/yyyy" }).mask('#u-bday')
Any device: Getting the unmaskedvalue of an empty input displays 11/30/0000
Showing the contents on keyup
$(document).on('keyup', '#u-bday', function () { var temp = $('#u-bday').inputmask('unmaskedvalue'); console.log(temp); }
iPad: The following is in order of typing. Type 1: unmasked value: 11/30/0000 - displayed as: 1M/DD/YYYY Type 2: unmasked value: 09/30/0000 - displayed as: 12/DD/YYYY Type 2: unmasked value: 11/30/0000 - displayed as: 12/2D/YYYY Type 4: unmasked value: 12/20/0000 - displayed as: 12/24/YYYY Type 2: unmasked value: 12/24/0000 - displayed as: 12/24/2YYY Type 0: unmasked value: 12/24/2000 - displayed as: 12/24/20YY Type 1: unmasked value: 12/24/2000 - displayed as: 12/24/201Y Type 8: unmasked value: 12/24/2010 - displayed as: 12/24/2018
Supply only a numeric mask
Inputmask({ mask: '99/99/9999' }).mask('#u-bday')
The following is in order of typing. Type 1: unmasked value: (empty) - displayed as: 1_//__ Type 2: unmasked value:1 - displayed as: 12//__ ....etc
@ptyriver ,
Unmasking of dates should be fixed as from 4.0.1 beta 23
@cyrilchapon , @ptyriver ,
Is the above issue still present in the latest from github?
On an old ipad (iOS 9.3.5),
this mask
Corrupts the input. The white spaces don't show up, and the digits kinda "replace" themselves" when one type ahead.