scrollToRow, scrollToPosition no longer works with WindowScroller after updating React to v16.8
See original GitHub issueFor my case, I’ve tested that it works for both methods without a WindowScroller
. Any idea what’s happening
Please reference this issue: https://github.com/bvaughn/react-virtualized/issues/1179#issuecomment-593502991
What is the current behavior?
Calling scrollToRow
and scrollToPosition
no longer scrolls properly, but the functions are defined and I can log to the console. It just failed silently.
What is the expected behavior?
It should simply scroll to the right position / row.
Which versions of React and react-virtualized, and which browser / OS are affected by this issue? Did this work in previous versions of react-virtualized?
Browser | Chrome v80 |
OS | OSX 10.15.3 |
React | 16.8.5 |
React DOM | 16.8.5 |
react-virtualized | 9.21.2 |
Issue Analytics
- State:
- Created 4 years ago
- Reactions:7
- Comments:9
Top Results From Across the Web
Calling scrollToRow() on List no longer works after updating ...
I use a combination of WindowScroller , AutoSizer and List . Important to note is that this is an issue specifically with React...
Read more >Developers - scrollToRow, scrollToPosition no longer works ...
scrollToRow, scrollToPosition no longer works with WindowScroller after updating React to v16.8.
Read more >React v16.8: The One With Hooks
Hooks have no breaking changes, and we have no plans to remove classes ... Hooks won't work if you forget to update, for...
Read more >How to Upgrade to React 18
Updates to Client Rendering APIs. When you first install React 18, you will see a warning in the console: ReactDOM.render is no longer...
Read more >React v16.0 – React Blog
0! Among the changes are some long-standing feature requests, including fragments, error boundaries, portals, support for custom DOM attributes, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As a quick workaround, this have worked for me - restrict the version to: “react-virtualized”: “9.21.1” in package.json. As I noticed the patch version updated had introduced the issue.
There are multiple open issues related to this same problem, some referencing List/Grid and others referencing WindowScroller. None of the workarounds referenced in all of these issues are working and downgrading react is not a viable solution for us.
Any idea if this is going to be fixed soon?