Should focus to native input wrapped by Controller first before focus to native input not. #6223
sonphung205
started this conversation in
RFC
Replies: 1 comment 1 reply
-
native input will register ahead of Controller, if you need the correct focus order, wrap all with Controller so the order remains the same. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using native input with Controller to keep validate with overwriten onchange after first "onSubmit". But after first submit, it's focus to the native input not wrapped by Controller first. It's should focus by order.
Refer to this sandbox pls https://codesandbox.io/s/beautiful-wood-ouy8x?file=/src/App.js
Steps
1: Scroll to bottom
2: Hit complete.
3: Cursor should focus to the first input, but it's focus to second input
Sorry about my terrible engilsh! First time using github Q&A and Codesandbox, forgive me!
Beta Was this translation helpful? Give feedback.
All reactions