How to prevent shifting the input value to left when user delete a part of input value. (Like date or IP address) #137
-
Hello, I have a date mask input. As this; dd/mm/yyyy For example, after I filled the input as 22/12/2002 and I deleted the part of day (22) and changed the date to 10, The current behavior:
I expect this is expected behavior, but I also found it a bit confusing to the user. Is there any way to keep it blank instead of pushing the all input value to left when the user deletes a part of the input? The ideal behavior:
I could not find the native feature of Maska to support this behaviour, but if there is any workaround, it would be great. Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'm afraid it’s not possible with Maska. For this to work you need mask library with placeholder support. |
Beta Was this translation helpful? Give feedback.
I'm afraid it’s not possible with Maska. For this to work you need mask library with placeholder support.