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

Component: InputNumber. Currency mode has issues with input / cursor position. #17073

Open
erber014 opened this issue Dec 16, 2024 · 1 comment
Labels
Status: Pending Review Issue or pull request is being reviewed by Core Team
Milestone

Comments

@erber014
Copy link

Describe the bug

This was reported earlier (in an issue that was closed) and is still a problem: #14227 (comment)
The currency mode for the InputNumber component has some issues. If you try to type a negative number in the field for Germany the cursor jumps after 1 character and the field becomes impossible to use properly without clearing it first.

Environment

https://primeng.org/inputnumber#currency. Has been an issue for many versions and is still an issue in PrimeNG v 18.

Reproducer

https://primeng.org/inputnumber#currency

Angular version

Whatever the official page uses.

PrimeNG version

Whatever the official page uses (Tested in v18 and earlier).

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

Whatever the official page uses.

Browser(s)

No response

Steps to reproduce the behavior

  1. Go to https://primeng.org/inputnumber#currency.
  2. Try to type a negative number in the field for Germany (EUR currency). The cursor jumps to the end after 1 character and the field becomes difficult/impossible to work with.

Expected behavior

I expect the currency mode to work properly. It should not be difficult/impossible to work with negative numbers.

@erber014 erber014 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 16, 2024
@mertsincan
Copy link
Member

Thanks a lot for the update!

@mertsincan mertsincan added Status: Pending Review Issue or pull request is being reviewed by Core Team and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Dec 16, 2024
@mertsincan mertsincan added this to the 18.0.1 milestone Dec 16, 2024
@github-project-automation github-project-automation bot moved this to Review in PrimeNG Dec 16, 2024
@mehmetcetin01140 mehmetcetin01140 modified the milestones: 18.0.1, 19.0.1 Dec 17, 2024
@mertsincan mertsincan modified the milestones: 19.0.1, 19.0.2 Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Pending Review Issue or pull request is being reviewed by Core Team
Projects
Status: Review
Development

No branches or pull requests

3 participants