Skip to content

Commit

Permalink
fix(esl-popup): fix esl-popup infinitely created independently of pla…
Browse files Browse the repository at this point in the history
…ceholder state
  • Loading branch information
ala-n committed Apr 3, 2024
1 parent 9907be8 commit 63ae414
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/esl-popup/core/esl-popup-placeholder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export class ESLPopupPlaceholder extends ESLToggleablePlaceholder {
public static override is = 'esl-popup-placeholder';

public override $origin: ESLPopup | null;

protected override disconnectedCallback(): void {
this.$origin?.remove();
super.disconnectedCallback();
}
}

declare global {
Expand Down

0 comments on commit 63ae414

Please sign in to comment.