You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When inputing a value in the middle of an inputmask the value is shifted to the beginning.
In the example I have a something like a data mask mm/dd/yyyy and input only mm/09/yyyy on blur this becomes 09/dd/yyyy
Environment
Nothing special, just using inputmask with autoclear set to off
Due to PrimeNG team's busy roadmap, this issue is available for anyone to work on. Make sure to reference this issue in your pull request. ✨ Thank you for your contribution! ✨
@mertsincan I would like to fix this issue, but currently unit testing is completely broken so I have no idea how contribution is possible at the moment. That's really frustrating. I would have fixed this issue weeks ago if I would now how to contribute.
To add to this problem, if the pattern has a fixed value somewhere in it, the fixed value will be inserted and moved up front too.
i.e., given the pattern "9999999-001" with [autoClear]="false", on focus the input will show _______-001. On blur, the input will show 001____-001. If you focus->blur again: 001001_-001 and so on.
Describe the bug
When inputing a value in the middle of an inputmask the value is shifted to the beginning.
In the example I have a something like a data mask mm/dd/yyyy and input only mm/09/yyyy on blur this becomes 09/dd/yyyy
Environment
Nothing special, just using inputmask with autoclear set to off
Reproducer
https://stackblitz.com/edit/stackblitz-starters-fm32vs?file=src%2Fmain.ts
Angular version
18.1.0
PrimeNG version
17.18.11
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.20.3
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
The value is preserved as it is
The text was updated successfully, but these errors were encountered: