You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I discovered that when i checked the unmasked value for length and was suprised the empty mask with only the pattern returns '..' . Is this intentional?
To Reproduce
Make date input and get unmaskedValue of Mask after init
Expected behavior
the unmasked value should probably be an empty string
Additional context
in my project i have a function unmasking the value like this:
/** replace all underscores followed by dots,then replaces all underscores
*
*/
private unmaskValue(value: string) {
return value.replaceAll(/.+/g, '').replaceAll('', '');
}
that first makes a __.__.____ string go to this state: _____ and these get replace clean by the second replaceAll.
Thank you for your work.
The text was updated successfully, but these errors were encountered:
When experimenting, i've notice that masked._value shows the actual value that i was expecting form unmaskedValue of the IMaskInstance. However it seems that if it is a bit flimsy when typing the last character of the date.
Describe the bug
I discovered that when i checked the unmasked value for length and was suprised the empty mask with only the pattern returns '..' . Is this intentional?
To Reproduce
Make date input and get unmaskedValue of Mask after init
Expected behavior
the unmasked value should probably be an empty string
Additional context
in my project i have a function unmasking the value like this:
/** replace all underscores followed by dots,then replaces all underscores
*
*/
private unmaskValue(value: string) {
return value.replaceAll(/.+/g, '').replaceAll('', '');
}
that first makes a
__.__.____
string go to this state:_____
and these get replace clean by the second replaceAll.Thank you for your work.
The text was updated successfully, but these errors were encountered: