-
-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OverlayScrollbars stopped working with React Virtuoso #506
Comments
Good day @justasdev :) Please share a minimal reproducable example of how your code looks.. You can use codesandbox, stackblitz or jsfiddle for that. I can then take a look where the problem lies |
Hello @justasdev,
The root cause of the issue appears to be that the |
@ippowe thanks for your suggestion! :) I had some time to take a look and came up with a good solution. List: https://codesandbox.io/s/sandpack-project-forked-2nhuwb?file=/App.js In the example I've used |
@justasdev I'll close this issue for now. In case my solution doesn't work for you please feel free to re-open this issue or create a new one. :) |
Related: #639 |
Describe the bug
We're using OverlayScrollbars as custom scroller for react virtuoso. Upgraded OverlayScrollbars to 2.1 and it stopped working with react virtuoso.
To Reproduce
Looks like
scrollbarsRef.osInstance()?.elements().viewport
is null at the time when virtuoso initializes scroller. Tried upgrading virtuoso too - same issue.osInstance
is initialized, butelements()
returns object withnull
values. Same issue when using hook based approach instead of react component.Expected behavior
scrollbarsRef.osInstance()?.elements().viewport
should not be null when virtuoso initializes scroller. Like it was in pre 2.0 versions.The text was updated successfully, but these errors were encountered: