Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

using autoHide at re-rendering chat #413

Open
ivanudovin-roonyx opened this issue Jul 21, 2022 · 0 comments
Open

using autoHide at re-rendering chat #413

ivanudovin-roonyx opened this issue Jul 21, 2022 · 0 comments

Comments

@ivanudovin-roonyx
Copy link

ivanudovin-roonyx commented Jul 21, 2022

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)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant