Scroller ngOnDestroy Cannot read property 'removeEventListener' of undefined
See original GitHub issue` StackTrace
zone.js:260 Uncaught EXCEPTION: Error in ./DataTableBody class DataTableBody - inline template:5:6 ORIGINAL EXCEPTION: TypeError: Cannot read property ‘removeEventListener’ of undefined ORIGINAL STACKTRACE: TypeError: Cannot read property ‘removeEventListener’ of undefined `
Scroller.ts ngOnDestroy add check method? ngOnDestroy() { this.parentElement.removeEventListener(‘scroll’); }
It was dealt with temporarily TableOption include scrollbarV=true
this.options= new TableOptions({
headerHeight: 50,
footerHeight: 50,
rowHeight: 'auto',
scrollbarV:true,
columnMode: ColumnMode.force
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Javascript removeEventListener OnDestroy not working in ...
The reason you are getting the Cannot read property 'update_collab_visible' of undefined error is because you are using a class function ...
Read more >Removing full screen event listener in ngOnDestroy-angular.js
this.onFullscreenChange.bind(this) creates a new reference to that function. You need to pass the same reference to addEventListener and removeEventListener .
Read more >ag-Grid Components: Cell Renderers
When implementing destroy() it is important to check that any elements created in getGui() exist, as when scrolling quickly destroy() can get called...
Read more >Team:FCB-UANL/JS/main - iGEM 2021
RxJS was set to use deprecated synchronous error handling behavior by code at: ... function(n,t){if(!n)throw new Error("Iterable cannot be null");return new ...
Read more >Prevent Scrolling In A Parent Element Using Directives In ...
However, the "scroll" event poses two problems in this context: first, it doesn't bubble up through the Document Object Model (DOM), ...
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
@amcdnl Thanks! 0.2.3 is non problem Your work is great!
Awesome, it’s working fine! I don’t know why the manual modifications didn’t work.
Many thanks for your reactivity 👍