-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
Allow keypress to replace/overwrite character of completed mask #129
Comments
Currently no, and i don't have plans to implement it. But it's reasonable to have, so may be later i will be able to do it. Let's don't close it for a while. |
I imagine it would be a beneficial feature for a number of users, thanks for your consideration! If I get some time to dig into it, I'll see if I can provide a pull request. |
@jgelo it would be great |
@jgelo Hi!
What do you think? How should it work and why? |
@uNmAnNeR, I'm on winter holiday so haven't had a chance to look at the code yet. I've attached a quick demo of a custom jquery date and account number widget that I'm trying to replicate in vanillajs. The default input for these widgets is to simply overwrite the character at the cursor position (if valid). Pressing backspace or delete exposes the underlying mask character. |
done in v5.0.0 |
@jgelo consider v5.1.0. I think there might be interesting feature for you. |
I've got a simple date mask setup using the following -
Once the input contains a complete mask (such as 2018-12-02), it's not possible to replace/overwite an existing digit without first deleting it.
Is there a way to allow valid characters to replace an existing character at the cursor position on keypress when the input already contains a complete mask?
The text was updated successfully, but these errors were encountered: