|
this.addEventListener('scroll', this.#handleScroll.bind(this)); |
|
|
|
if (this.enableResizeObserver) { |
|
this.#connectResizeObserver(); |
|
} |
|
if (this.#initialized) { |
|
this.#update(); |
|
} |
|
} |
|
|
|
disconnectedCallback() { |
|
this.removeEventListener('scroll', this.#handleScroll); |
|
this.#disconnectResizeObserver(); |
|
} |
removeEventListener on LN275 is not using the bound handler reference at LN264.
Update to store a reference to the scroll event handler and use that to remove the handler on unmount.
virtual-scroller/src/virtual-scroller.js
Lines 264 to 277 in 8a53594
removeEventListeneron LN275 is not using the bound handler reference at LN264.Update to store a reference to the
scrollevent handler and use that to remove the handler on unmount.