react-custom-scrollbars
react-custom-scrollbars copied to clipboard
Document events scrollbar attach
have problems if you use reactPortal and different documents like iframe
your scrips loaded in iframe and append the component from iframe to window.parent
+1 Getting an error message saying Cannot read properties of null (reading 'style')
ocassionally when using react-custom-scrollbars in react components that are rendered in the content script of a browser extension. I have traced it back to document.body
being null on this line:
https://github.com/malte-wessel/react-custom-scrollbars/blob/b353cc4956d6154d6a100f34c3a6202c75434186/src/Scrollbars/index.js#L333