-
Notifications
You must be signed in to change notification settings - Fork 289
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
Cannot read properties of null (reading 'onWheel') #656
Comments
Thanks for reporting. Unfortunately I can't seem to reproduce this with the snippet on codesandbox. Could you add more information here? |
Here is the repo |
@savaparoski , thanks a lot for the repo. I can reproduce it now. The issue comes from turning on React's StrictMode, which runs the lifecycle methods in I believe this can only be seen in strict mode as of now, but this might also become a problem with later versions of React, where our same table instance might be mounted/unmounted multiple times. I can put up a PR to properly initialize and cleanup the mouse/touch handlers, which should prevent the NPE mentioned here. |
can we get this merged? |
Thanks for the ping. @savaparoski , @mrtnbroder, the fix is now available on v1.2.12 and above. |
Sounds good, thanks |
Versions
React - 18.2.0
fixed-data-table-2 - ^1.2.11
Code
Error
FixedDataTable.js:596 Uncaught TypeError: Cannot read properties of null (reading 'onWheel')
The text was updated successfully, but these errors were encountered: