fix: Cancel the pending debounced resize when the media dimensions container disconnects (#2700)

- Closes: #2699
This commit is contained in:
Dermot Duffy
2026-08-21 20:45:31 -07:00
committed by GitHub
parent 11cc543406
commit 2f74889bcb
2 changed files with 34 additions and 0 deletions
@@ -60,6 +60,7 @@ export class MediaDimensionsContainerController implements ReactiveController {
public hostDisconnected(): void {
this._resizeObserver.disconnect();
this._removeInnerContainerListeners();
this.resize.cancel();
}
private _removeInnerContainerListeners(): void {