react-custom-scrollbars icon indicating copy to clipboard operation
react-custom-scrollbars copied to clipboard

using autoHide at re-rendering chat

Open ivanudovin-roonyx opened this issue 3 years ago • 0 comments

Hey guys, nice scrollbars! I'm building chat with old messages update on scroll, so whenever I call out old messages download, my chat component does re-render and so for a few seconds scroll disappears from DOM (as I figure) and gives a console error. Nothing breaks, the app works as planned but the console log error is still there. Is there any way to add (I'm still looking for this place) a check for null or how to disable this error console?

Console error is: `index.js:18 Uncaught TypeError: Cannot read properties of null (reading 'style')

at style (index.js:18:1)

at each (index.js:25:1)

at set (index.js:42:1)

at index.js:570:1`

The first light up is some prop 'camel', no idea what is that: element.style[camel] = addPxToStyle(camel, value)

ivanudovin-roonyx avatar Jul 21 '22 09:07 ivanudovin-roonyx