Cannot set property 'scrollTop' of null
See original GitHub issueAngular 2.4.8 Angular2-tree-component 3.1.0
Hi. After upgrading from 2.7.0 to 3.1.0 i got some issue. When i try to do this:
this.itemsTree.treeModel.getNodeById('abc').setActiveAndVisible(true);
i got error: “Cannot set property ‘scrollTop’ of null”
Issue Analytics
- State:
- Created 7 years ago
- Comments:20 (9 by maintainers)
Top Results From Across the Web
react Cannot set property 'scrollTop' of undefined
I'm receiving the following error. How can I solve this issue. TypeError: Cannot set property 'scrollTop' of undefined ...
Read more >Error in Tests [TypeError: Cannot read property 'scrollTop' of null]
Hi, I'm using the Tabs component and passing all the props that I require using my own wrapper component. Everything is working fine...
Read more >Uncaught TypeError: Cannot read property 'scrollTop' of null
So, in Eureka, this code works fine: function close_and_reopen_UI_Page(). {. // Close this current pop-up UI page.
Read more >js-error "Cannot read property 'scrollTop' of null" for gantt chart ...
js-error "Cannot read property 'scrollTop' of null" for gantt chart report.
Read more >Troubleshooting - Material UI - MUI
Troubleshooting · Material UI v5 migration · Styles broken after migrating to v5 · Storybook and Emotion · Cannot read property scrollTop of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you need a workaround until this gets sorted out, surround the “display” request with a setTimeout(). It’s working for me.
Still happening for me with 3.7.2. Probably my situation is unique - the tree is within an *ngIf. It’s initially hidden until data is retrieved from our server and a manual change detection is called. @SnackyPete’s workaround to use a setTimeout works for me and I’m happy with that, but thought I’d mention it in case anyone else is still having this issue.