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 can't enter 0.0x using minFractionDigits/mode="currency" #5170

Closed
Petri-Oosthuizen opened this issue Jan 29, 2024 · 1 comment
Closed
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@Petri-Oosthuizen
Copy link

Petri-Oosthuizen commented Jan 29, 2024

Describe the bug

When using the PrimeVue InputNumber component on the page https://primevue.org/inputnumber, the component incorrectly interprets decimal values. Specifically, when a user attempts to enter the decimal value "0.04" into any of the example fields that accept decimal values with minFractionDigits or mode="currency" set, the component incorrectly displays the entered value as "0.40". This issue represents a significant problem as it misrepresents the user's intended input, potentially leading to inaccurate data entry and processing.

Reproducer

https://codesandbox.io/p/devbox/upbeat-panini-cmw26s?file=%2Fsrc%2FApp.vue%3A5%2C54-5%2C71

PrimeVue version

3.47.1

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

  1. Go to the input number page: https://primevue.org/inputnumber/
  2. Click on any of the examples with a decimal
  3. Enter 0.04
  4. Observe that the entered amount is 0.40

Expected behavior

No response

@Petri-Oosthuizen Petri-Oosthuizen added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 29, 2024
@Petri-Oosthuizen Petri-Oosthuizen changed the title InputNumber can't enter 0.0x using minFractionDigits InputNumber can't enter 0.0x using minFractionDigits/mode="currency" Jan 29, 2024
@mertsincan
Copy link
Member

Thanks a lot for your report! I set a milestone for it. We'll check it before the milestone is released.

@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 Jan 30, 2024
@mertsincan mertsincan added this to the 3.50.0 milestone Jan 30, 2024
@tugcekucukoglu tugcekucukoglu modified the milestones: 3.50.0, 3.52.0 Mar 15, 2024
@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Pending Review Issue or pull request is being reviewed by Core Team labels Apr 25, 2024
@tugcekucukoglu tugcekucukoglu self-assigned this Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants