twenty
twenty copied to clipboard
Implement <ScrollRestoration />
Current behavior
As of today, when you hit the "back" button, you are always redirected to the top of the page. This is annoying when working with lots of records (e.g. Kanban board).
https://github.com/twentyhq/twenty/assets/6399865/7a9c71f4-0f23-437c-b2bd-5ba4c6253757
Desired behavior
Other websites like Github just record the scroll position. This seems to be doable with https://reactrouter.com/en/main/components/scroll-restoration#scrollrestoration-
Edit: also check https://reactrouter.com/en/main/components/link#preventscrollreset not sure if needed
@FelixMalfait Could I be assigned this? Thanks
@Jonathanlemon of course, that'd be very helpful if you can solve this. Got this feedback twice from users. Thanks!
@Jonathanlemon did you have time to look yet? Thanks!
@FelixMalfait Something came up where I will not be able to look into this, sorry. Please unassign me
OK no problem @Jonathanlemon thanks for trying!
Here is the GitStart Ticket for this issue: https://clients.gitstart.com/twenty/5449/tickets/TWNTY-4357