setFocus is crashing after setValue with React 18 #10691
Unanswered
baonv-acbs-com-vn
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hope to have a demo to repeat this problem. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Version Number
7.45.0
Steps to reproduce
useEffect(() => {
setValue("quantity","0");
setFocus("quantity",{ shouldSelect: true })
})
Observe error in the console:
Could not consume error: Error: Something is really wrong.
Expected behaviour
setFocus should focus should Select the field.
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions