question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

scrollToRow, scrollToPosition no longer works with WindowScroller after updating React to v16.8

See original GitHub issue

For 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:open
  • Created 4 years ago
  • Reactions:7
  • Comments:9

github_iconTop GitHub Comments

7reactions
fekgabcommented, May 8, 2020

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.

5reactions
nicholeufcommented, Mar 9, 2020

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found