reactScrollbar icon indicating copy to clipboard operation
reactScrollbar copied to clipboard

Won't execute scrollToY in componentDidMount

Open glebcha opened this issue 9 years ago • 3 comments

Use reference to access ScrollArea HOC, can log it's methods and nodes. But can't scroll to offset needed.

glebcha avatar Jun 25 '16 08:06 glebcha

I have the same problem, but in componentDidUpdate. Both scrollYTo and scrollBottom methods.

kudlajz avatar Jul 21 '16 14:07 kudlajz

facing same issue using scrollYTo in componentWillReceiveProps.

got a error of Cannot read property 'offsetHeight' of null

bibekluitel avatar Aug 01 '17 14:08 bibekluitel

Same. Get the offsetHeight error above when using the ScrollArea context and trying to execute scrollYTo or refresh() in componentDidMount and componentDidUpdate methods. I am using React 16.4.

joetidee avatar Jul 28 '18 10:07 joetidee