8000 fix(InputNumber): suffix problem after selecting all text by EasonLin0716 · Pull Request #7728 · primefaces/primevue · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(InputNumber): suffix problem after selecting all text #7728

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

Conversation

EasonLin0716
Copy link
Contributor
@EasonLin0716 EasonLin0716 commented May 18, 2025

Defect Fixes

Fix #7724

This issue occurs because selectionStart is positioned at the end of the suffix, causing InputNumber to attempt deleting the suffix instead of thevalue. The fix adjusts selectionStart to the end of thevalue when the Backspace key is pressed, allowing the subsequent behavior to correctly delete the intended user input.

@EasonLin0716 EasonLin0716 changed the title Fix: suffix problem after selecting all text fix(InputNumber): suffix problem after selecting all text May 18, 2025
@tugcekucukoglu tugcekucukoglu merged commit e70f038 into primefaces:master Jun 19, 2025
0 of 3 checks passed
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.

InputNumber - suffix problems after selecting all text
2 participants
0