You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your bug may already be fixed in the latest release. Run yarn upgrade react-table!
6.7.4
What bug are you experiencing, or what feature are you proposing?
When using a scrollable list with fixed headers and paging, changing the page or the rows/page does not scroll the list to the top. I believe it should. We worked around this by doing the scrollTop within onFetchData. Horizontal scrolling should (and does) get maintained.
Since this is a question of implementation we invite you to continue the conversation in the react tools slack organization. Thanks! https://react-chat-signup.herokuapp.com/
Activity
melkayam92 commentedon Jan 27, 2018
I Also have this problem.
@aldensc For a workaround i added to ReactTable props:
onPageChange={() => {
document.getElementsByClassName('rt-tbody')[0].scrollTop = 0;
}}
tannerlinsley commentedon Feb 8, 2018
Since this is a question of implementation we invite you to continue the conversation in the react tools slack organization. Thanks! https://react-chat-signup.herokuapp.com/
erick2014 commentedon Nov 7, 2018
well it worked for me but If I do something like
document.getElementsByClassName('rt-tbody')[1].scrollTo(0,0)farhantahir commentedon Apr 15, 2019
Any solution to this apart from following: