question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
katsuki-nakatanicommented, Aug 16, 2016

@amcdnl Thanks! 0.2.3 is non problem Your work is great!

0reactions
adaurcommented, Aug 15, 2016

Awesome, it’s working fine! I don’t know why the manual modifications didn’t work.

Many thanks for your reactivity 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found