Skip to content

numberfield ignores inc/dec #3088

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

Closed
andelkocvjetkovic opened this issue Apr 29, 2022 · 2 comments
Closed

numberfield ignores inc/dec #3088

andelkocvjetkovic opened this issue Apr 29, 2022 · 2 comments

Comments

@andelkocvjetkovic
Copy link

andelkocvjetkovic commented Apr 29, 2022

🐛 Bug Report

NumberField buttons for increment and decrement ignore onClick

🤔 Expected Behavior

Every click on buttons increment and decrement should trigger corresponding action.

😯 Current Behavior

For some reason buttons increment and decrement ignores first onClick action, and trigger corresponding actions after second onClick.

💁 Possible Solution

I rolled back to @react-stately/numberfield: 3.0.4, and that fixed the bug

💻 Code Sample

https://stackblitz.com/edit/vitejs-vite-rk94ju?file=package.json

🌍 Your Environment

MacOS Big Sur

@reidbarber
Copy link
Member

Seems like it's related to using Strict Mode. We have an umbrella issue for strict mode support at #779.

@LFDanLu
Copy link
Member

LFDanLu commented Aug 3, 2022

Closing in favor of the umbrella strict mode issue #779

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

No branches or pull requests

3 participants