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: input content can desync from value prop after blur #2527

Closed
dmitriy-ssh opened this issue Dec 15, 2021 · 2 comments
Closed

InputNumber: input content can desync from value prop after blur #2527

dmitriy-ssh opened this issue Dec 15, 2021 · 2 comments
Labels
Type: Bug Issue contains a defect related to a specific component.

Comments

@dmitriy-ssh
Copy link

I'm submitting a ... (check one with "x")

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Current behavior
If after changes made by user input is blank, but value prop is not changed because of external validation, the input contents will desync from value prop after blur.

Expected behavior
The input contents reflect the value prop after blur.

Minimal reproduction of the problem with instructions
https://codesandbox.io/s/primereact-inputnumberbugs-tqb7z
Input #2
blank

Please tell us about your environment:

  • React version:
    17.01

  • PrimeReact version:
    7.1.0

  • Browser:
    Chrome 96.0.4664.93

  • Language: TS 3.3.3

@melloware
Copy link
Member

@dmitriy-ssh are you expecting the value to be blank/undefined and not 0 when you blank it out? Is that the issue?

@melloware melloware added the Type: Bug Issue contains a defect related to a specific component. label Apr 10, 2022
@melloware
Copy link
Member

Never heard back from OP about what their expected behavior is. Will re-open if they respond

@melloware melloware closed this as not planned Won't fix, can't repro, duplicate, stale Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants