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

InputNumber: Cannot delete character with backspace after inserting Up Arrowhead ^ #16607

Closed
gianluca-moro opened this issue Oct 22, 2024 · 1 comment · Fixed by #16965
Closed
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@gianluca-moro
Copy link
Contributor

gianluca-moro commented Oct 22, 2024

Describe the bug

When accidentially entering an Up Arrowhead ^ into an InputNumber, it is no longer possible to delete it using Backspace. I first have to navigate the cursor with ArrowLeft to the position before the ^ until I can delete again using Backspace. Also, in this case, pressing Backspace once will delete the entrie value, not digit by digit.

Environment

PrimeNG: 17.18.11

Reproducer

https://stackblitz.com/edit/zlhnsq?file=package.json

Angular version

18.2.3

PrimeNG version

17.18.11

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.19.1

Browser(s)

Firefox 131.0.3, Chrome 129.0.6668.101

Steps to reproduce the behavior

  1. Open Stackblitz Reproducer
  2. Press Up Arrowhead ^ on your keyboard and Space
  3. Now try to delete it by pressing Backspace
  4. Move the cursor one position to the left using ArrowLeft and now press Backspace. Now the whole value is deleted.

Expected behavior

InputNumber should not allow inserting Up Arrowhead ^.
Pressing Backspace should delete any character in an InputNumber.
Also, pressing Backspace once should not delete the entire value, but digit by digit.

@gianluca-moro gianluca-moro added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 22, 2024
@mertsincan mertsincan added Resolution: Help Wanted Issue or pull request requires extra help and feedback and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 19, 2024
@mertsincan mertsincan added this to the Future milestone Nov 19, 2024
Copy link

Due to PrimeNG team's busy roadmap, this issue is available for anyone to work on. Make sure to reference this issue in your pull request. ✨ Thank you for your contribution! ✨

JeremyHefti pushed a commit to JeremyHefti/primeng that referenced this issue Dec 6, 2024
mertsincan pushed a commit that referenced this issue Dec 6, 2024
@mertsincan mertsincan added Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add and removed Resolution: Help Wanted Issue or pull request requires extra help and feedback labels Dec 6, 2024
@mertsincan mertsincan modified the milestones: Future, 17.18.13 Dec 6, 2024
@mertsincan mertsincan moved this to Review in PrimeNG Dec 7, 2024
@mertsincan mertsincan moved this from Review to Done in PrimeNG Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants