Open adhenrique opened 5 years ago
Has anyone come across something like that? I tried to create a mask that contemplates 123 hours or 1234 hours, but it seems not to work well:
123 hours
1234 hours
const formatChars = { "9": "[0-9]", "?": "[0-9 ]" }; const mask = value.length <= 9 ? "999? hours" : "9999 hours";
When I type 123, it would be correct for the library to fill the rest of the field with hours, but it only fills if I type 1234.
123
hours
1234
Is my logic incorrect?
Any update on this issue? I have the same problem. In the old version, works fine.
up
Any update on this issue? I have the same problem
Has anyone come across something like that? I tried to create a mask that contemplates
123 hours
or1234 hours
, but it seems not to work well:When I type
123
, it would be correct for the library to fill the rest of the field withhours
, but it only fills if I type1234
.Is my logic incorrect?