KeyFilter: Can't edit value at some cursor positions #16084
Labels
LTS-PORTABLE
Issue's fix will be ported to supported LTS versions
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
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:
To allow input at any cursor position:
.00
.Expected behavior
I should be able to type
1000.00
and then move my cursor position to one between1
and the first0
and type2
to change the value to12000.00
.The text was updated successfully, but these errors were encountered: