-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to prevent overwriting typed numbers in "Date format with mask" example? #81
Comments
have u tried mask={false} prop? |
https://codesandbox.io/embed/github/istarkov/rifm/tree/gh-pages/codesandboxes/date-format
|
Your gif shows I guess the default behavior: |
How to edit if no changes? |
In other words, emulate the same behavior as |
The project text-mask has an option |
Currently in "Date format with mask" example ( __-__-____ ) if for instance it has a value
"11-22-333" if I put a caret here: 11-|22-3333 and type "44"
it will overwrite "22" => 11-44-|3333.
Seems like all "Date format" examples have such behavior.
How to prevent this? Eg. block any input until you remove at least one number.
Another bug I noticed with this example:
Thanks in advance!
The text was updated successfully, but these errors were encountered: