-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Labels
LTS-PORTABLEIssue's fix will be ported to supported LTS versionsIssue's fix will be ported to supported LTS versionsType: BugIssue contains a bug related to a specific component. Something about the component is not workingIssue contains a bug related to a specific component. Something about the component is not working
Description
Describe the bug
When using strict regex on a keyfilter, editing a value at any cursor position except the end will not test regex correctly. This will prevent changes to the input.
Environment
Windows 11
Reproducer
https://github-1l73hr.stackblitz.io
Angular version
17.3.12
PrimeNG version
17.18.5
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.12.1
Browser(s)
No response
Steps to reproduce the behavior
https://github-1l73hr.stackblitz.io
To Reproduce:
- Click into the input on the value anywhere besides the end.
- Try to type any number.
- Input will be block.
To allow input at any cursor position:
- Delete the cents side of the value to be shorter than
.00. - Now you can change value anywhere the cursor is.
Expected behavior
I should be able to type 1000.00 and then move my cursor position to one between 1 and the first 0 and type 2 to change the value to 12000.00.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
LTS-PORTABLEIssue's fix will be ported to supported LTS versionsIssue's fix will be ported to supported LTS versionsType: BugIssue contains a bug related to a specific component. Something about the component is not workingIssue contains a bug related to a specific component. Something about the component is not working