Skip to content

Commit

Permalink
fix: add missing super.disconnectCallback() calls (#1564)
Browse files Browse the repository at this point in the history
  • Loading branch information
cschuller authored Sep 14, 2023
1 parent 3b77c3b commit 1d28e1b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/details/details.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export default class SlDetails extends ShoelaceElement {
}

disconnectedCallback() {
super.disconnectedCallback();
this.detailsObserver.disconnect();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export default class SlMutationObserver extends ShoelaceElement {
}

disconnectedCallback() {
super.disconnectedCallback();
this.stopObserver();
}

Expand Down
1 change: 1 addition & 0 deletions src/components/popup/popup.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ export default class SlPopup extends ShoelaceElement {
}

disconnectedCallback() {
super.disconnectedCallback();
this.stop();
}

Expand Down
1 change: 1 addition & 0 deletions src/components/tab-group/tab-group.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export default class SlTabGroup extends ShoelaceElement {
}

disconnectedCallback() {
super.disconnectedCallback();
this.mutationObserver.disconnect();
this.resizeObserver.unobserve(this.nav);
}
Expand Down

0 comments on commit 1d28e1b

Please sign in to comment.