Closed Ethorsen closed 2 years ago
Hi @petyosi
Describe the bug There is a crash when using Virtuoso with OverlayScrollbars as a custom scrollbar.
TypeError Cannot read properties of null (reading 'dataset') eval https://yos1zo.csb.app/node_modules/react-virtuoso/dist/index.m.js:968:55 ResizeObserver.eval https://yos1zo.csb.app/node_modules/react-virtuoso/dist/index.m.js:912:34
The error was introduced in 2.5.0 with the changes in src/hooks/useChangedChildSizes.ts i'm guessing
Reproduction https://codesandbox.io/s/react-virtuoso-custom-scrollbar-forked-yos1zo?file=/src/CustomScrollbar.js
To Reproduce Switch to Virtuoso 2.4.1 makes the error go away.
Switch to Virtuoso 2.5.0 creates the error.
Expected behavior No error.
Screenshots
Desktop (please complete the following information): N/A
Additional context N/A
Added details in #662
Hi @petyosi
Describe the bug There is a crash when using Virtuoso with OverlayScrollbars as a custom scrollbar.
The error was introduced in 2.5.0 with the changes in src/hooks/useChangedChildSizes.ts i'm guessing
Reproduction https://codesandbox.io/s/react-virtuoso-custom-scrollbar-forked-yos1zo?file=/src/CustomScrollbar.js
To Reproduce Switch to Virtuoso 2.4.1 makes the error go away.
Switch to Virtuoso 2.5.0 creates the error.
Expected behavior No error.
Screenshots
Desktop (please complete the following information): N/A
Additional context N/A