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

The inputmask plugin shows strange behavior when editing date/datetime value #2761

Open
pbthapa opened this issue Dec 13, 2023 · 0 comments
Open

Comments

@pbthapa
Copy link

pbthapa commented Dec 13, 2023

Issues:

  1. When the date is not empty and if you enter any number (say 1) in the day part, the day is immediately filled with that number but the cursor jumps to the month. For example: Enter the date 23/12/2023 with 'dd/mm/yyyy' format. The put the cursor at digit 2 of and enter any number (either 1, 2 or 3), the cursor jumps to month part without allowing day part to fill properly. Also, If you enter any number greater than 1 in the month part, the field is automatically filled with this value (with a leading 0) and the cursor jumps to the year part.
    image
  2. When you enter any digit in the year in the datetime field, all values behind that digit in the year and the time are deleted. The datetime format is 'dd/mm/yyyy HH:MM:ss'.
    image

JQuery version: 3.7.1
Inputmask plugin version: 5.0.8

Codepen link to the issue: https://codepen.io/PUSHPA2019/pen/JjxqJbp?editors=1010

Is this known issue or some configuration is missing?

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

1 participant