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

DevTools: Updating numeric state through incrementer/decrementer doesn't render the updated value #16808

Closed
13thThief opened this issue Sep 17, 2019 · 5 comments

Comments

@13thThief
Copy link

Do you want to request a feature or report a bug?

Report a Bug

What is the current behavior?

If there is a state variable that holds a number, updating it via incrementer/decrementer doesn't render the updated value in the component. Instead it only updates if you focus (click) onto the field and press Enter.

What is the expected behavior?

The incrementer/decrementer should render the updated value without having to focus onto the field and press Enter.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

React Devtool: 4.0.6
Browser: Firefox Dev 70.0b6 (64-bit)

(Timer state variable updates the value in Session)
hfo_19

@threepointone
Copy link
Contributor

Could you share a reproducing usecase with https://codesandbox.io/?

@13thThief
Copy link
Author

@threepointone
Copy link
Contributor

Ah ok, I don't see the increment/decrement buttons on mac, so cannot reproduce. I'm guessing you're on windows? @bvaughn is this a known issue?

@bvaughn
Copy link
Contributor

bvaughn commented Sep 17, 2019

Not a known issue but this UI has already been changed via #16700 such that the numeric input no longer exists. (We just haven't done a release yet.)

So this bug has been fixed and the fix will be deployed with the next release.

@13thThief
Copy link
Author

@threepointone Windows 8.1 (64-bit)
@bvaughn Alright. Thanks!

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