Skip to content
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

Selected part of field to change, after first keyup, all shifted to left #806

Open
itajackass opened this issue Jul 25, 2024 · 1 comment

Comments

@itajackass
Copy link

Hi, if I have a date field like this: 22/01/2024 (italian format) with mask 00/00/0000 applied and clearIfNotMatch: true

and I want to edit month (01) to (10), I do this step:

  1. select with mouse the 01 values: 22/01/2024
  2. start typing 10.... but when I type 1, field became 22/12/024 (shift to left)
  3. of course if continue typing 0, then field become correct 22/10/2024

The problem is that if I focus out at point 2) for some reason, because clearIfNotMatch is true, the field clear up.

I'd like to know if there is a way to prevent this behavior

@pyetrosafe
Copy link

This seems to me to be expected behavior. Since when you lose focus in step 2, the format is not as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants