Clicking on a table element reset's the location of the scrollbar #944
-
Beta Was this translation helpful? Give feedback.
Answered by
petyosi
Jul 10, 2023
Replies: 1 comment 3 replies
-
You need to move the definition of the components outside of the boby of the functional component. Right now, a fresh instance of the custom components is created with each re-render. See this note and a reference implementation. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
ManoloTonto1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to move the definition of the components outside of the boby of the functional component. Right now, a fresh instance of the custom components is created with each re-render. See this note and a reference implementation.