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: value is lost with OnValueChange when unmount happens before blur #2528

Closed
dmitriy-ssh opened this issue Dec 15, 2021 · 1 comment

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 the unmount happens before blur (for example, mouseDown event), onValueChange event doesnt fire and user changes are lost.

Expected behavior
OnValueChange is called before unmount.

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

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

@yigitfindikli yigitfindikli added the Status: Pending Review Issue or pull request is being reviewed by Core Team label Mar 22, 2022
@yigitfindikli yigitfindikli modified the milestone: 8.0.0 Mar 22, 2022
@yigitfindikli yigitfindikli removed the Status: Pending Review Issue or pull request is being reviewed by Core Team label Mar 22, 2022
@yigitfindikli
Copy link
Contributor

Related to #2527

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants