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

KeyFilter: Can't edit value at some cursor positions #16084

Closed
BGBRWR opened this issue Jul 23, 2024 · 0 comments · Fixed by #16085
Closed

KeyFilter: Can't edit value at some cursor positions #16084

BGBRWR opened this issue Jul 23, 2024 · 0 comments · Fixed by #16085
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

Comments

@BGBRWR
Copy link
Contributor

BGBRWR commented Jul 23, 2024

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:

  1. Click into the input on the value anywhere besides the end.
  2. Try to type any number.
  3. Input will be block.

To allow input at any cursor position:

  1. Delete the cents side of the value to be shorter than .00.
  2. 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.

@BGBRWR BGBRWR added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jul 23, 2024
@BGBRWR BGBRWR changed the title Component: Title KeyFilter: Can't edit value at some cursor positions Jul 23, 2024
@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working LTS-PORTABLE Issue's fix will be ported to supported LTS versions and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants