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: Isssue with suffix in decimal type number field #2871

Closed
vishalgupta3006 opened this issue May 11, 2022 · 6 comments · Fixed by #3615
Closed

InputNumber: Isssue with suffix in decimal type number field #2871

vishalgupta3006 opened this issue May 11, 2022 · 6 comments · Fixed by #3615
Labels
Resolution: Stale Issue or pull request is inactivity and unfortunately it will be *closed* if there is no response Type: Bug Issue contains a defect related to a specific component.

Comments

@vishalgupta3006
Copy link

vishalgupta3006 commented May 11, 2022

Describe the bug

In a InputNumber field having decimal values and suffix, when user try to enter decimal point(.) then suffix is shown 2 times.
User is not able to add digits after the decimal place as when digits are entered, then all the value get lost.

Reproducer

https://codesandbox.io/s/primereact-test-forked-s6vo96

PrimeReact version

8.0.1

React version

18.x

Language

ES6

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

Expected behavior

No response

@vishalgupta3006 vishalgupta3006 added the Type: Bug Issue contains a defect related to a specific component. label May 11, 2022
@melloware melloware added Resolution: Needs More Information More information about the issue is needed to find a correct solution and removed Type: Bug Issue contains a defect related to a specific component. labels May 11, 2022
@melloware melloware added the Resolution: Cannot Replicate Issue could not be replicated by Core Team label May 14, 2022
@jacob-w-gable
Copy link

jacob-w-gable commented Jun 3, 2022

Steps to reproduce

  • The maxFractionDigits property of the InputNumber element needs to be > 1
  • The minFractionDigits property needs to be either absent from the InputNumber element or it needs to be set to zero
  • In the input field, type in any numerical characters followed by a period. The suffix will duplicate.

Updated Codesandbox: https://codesandbox.io/s/primereact-test-forked-s6vo96

@melloware melloware reopened this Jun 3, 2022
@melloware melloware added Type: Bug Issue contains a defect related to a specific component. 👍 confirmed and removed Resolution: Cannot Replicate Issue could not be replicated by Core Team Resolution: Needs More Information More information about the issue is needed to find a correct solution labels Jun 3, 2022
@melloware
Copy link
Member

Confirmed.

melloware added a commit to melloware/primereact that referenced this issue Nov 11, 2022
@melloware melloware assigned melloware and unassigned mertsincan Nov 11, 2022
@melloware melloware added this to the 8.7.3 milestone Nov 11, 2022
melloware added a commit to melloware/primereact that referenced this issue Nov 11, 2022
melloware added a commit to melloware/primereact that referenced this issue Nov 11, 2022
melloware added a commit to melloware/primereact that referenced this issue Nov 11, 2022
@mertsincan mertsincan removed this from the 8.7.3 milestone Dec 1, 2022
@mertsincan mertsincan reopened this Dec 1, 2022
@github-actions github-actions bot 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 1, 2022
@mertsincan mertsincan reopened this Dec 1, 2022
@mertsincan
Copy link
Member

@melloware, when the input number enters a value, this fix breaks the InputNumber with currency format. So, reverted.

@melloware melloware removed their assignment Dec 7, 2022
@melloware melloware removed the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 7, 2022
@melloware
Copy link
Member

PrimeVue: primefaces/primevue#3382

Copy link

github-actions bot commented Dec 8, 2023

This issue has been automatically marked as stale. If this issue is still affecting you with the latest version, please leave any comment, and we will keep it open. We are sorry that we have not been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@github-actions github-actions bot added the Resolution: Stale Issue or pull request is inactivity and unfortunately it will be *closed* if there is no response label Dec 8, 2023
Copy link

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you for your understanding!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Stale Issue or pull request is inactivity and unfortunately it will be *closed* if there is no response Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants