Skip to content

using autoHide at re-rendering chat #413

@ivanudovin-roonyx

Description

@ivanudovin-roonyx

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions