-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Calendar: manual input value is wrongly corrected when typing #6099
Comments
@melloware Hello! I want to try this, can u verify my solution please Accept next digit, and move previous to start, when input is filledFor example you want to type 2024.03.18, after typing '1' to 2024.03 |
@KirilCycle this one is complex but you are welcome to submit a PR so we can test it? |
vueprime works fine at this case, i should take a look at their code base |
Good idea to review PrimeVue and compare. |
Describe the bug
Using dateFormat="yy.mm.dd" type "2024.03." and next start typing "18" or something like that. After you type "1" the date is set to 2024.03.01 and makes typing "18" here impossible.
Reproducer
https://stackblitz.com/edit/vitejs-vite-uz69pt?file=src%2FApp.tsx
PrimeReact version
10.5.1
React version
18.x
Language
ES6
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
Parsing the date should be done only if provided input matches the format, so if dd is at the end .1 should not become .01 automatically
The text was updated successfully, but these errors were encountered: