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

fix(keyfilter): regex test with the correct value onKeyPress #16085

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

BGBRWR
Copy link
Contributor

@BGBRWR BGBRWR commented Jul 23, 2024

fixes #16084

Copy link

vercel bot commented Jul 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
primeng ⬜️ Ignored (Inspect) Visit Preview Jul 23, 2024 6:43pm

let val = valueCheck + cc;
const selectionStart = (<HTMLInputElement>e.currentTarget).selectionStart || 0;
const selectionEnd = (<HTMLInputElement>e.currentTarget).selectionEnd || 0;
let val = valueCheck.substring(0, selectionStart) + cc + valueCheck.substring(selectionEnd);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not verified this but should lines 234 and 235
|| 0
be replaced with
|| Number.MAX_SAFE_INTEGER

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KeyFilter: Can't edit value at some cursor positions
3 participants