Input loosing focus after table rerender #5572
Unanswered
happylolonly
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I have had similar problems and on my case, all of them were related to the fact the some part of my component tree was re-mounted when an user typed something. If it wasn't the input component itself, it was some of its parent components. Make sure that React key is present everywhere where you create components via looping. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Try wrap input with React.memo |
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
-
How to keep focus on input when table (columns) rerenders?
Tried
key
on input, but it is not working...Beta Was this translation helpful? Give feedback.
All reactions