Skip to content

Clicking on a table element reset's the location of the scrollbar #944

Closed Answered by petyosi
ManoloTonto1 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ManoloTonto1
Comment options

@mokhigh
Comment options

@ManoloTonto1
Comment options

Answer selected by ManoloTonto1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants