bvaughn / react-virtualized-auto-sizer

Standalone version of the AutoSizer component from react-virtualized
MIT License
613 stars 83 forks source link

Add an extra check for an e.target.className.indexOf function #14

Closed soren121 closed 3 years ago

soren121 commented 5 years ago

This PR pulls in the fix from bvaughn/react-virtualized#1210.

className is null when the element has no classes. I had encountered the null-reference error here because react-map-gl uses this standalone library.

balthazar commented 4 years ago

@bvaughn Sorry to bump but I would really like to get this fix as it cause a couple of errors, and especially because react-window points to this repo too

You can add me as a maintainer and I can take care of it :slightly_smiling_face:

peeke commented 4 years ago

This PR would fix some issues we're seeing in our error logging :)