Skip to content

Commit

Permalink
Merge pull request #2314 from exadel-inc/fix/esl-popup-livecycle
Browse files Browse the repository at this point in the history
fix(esl-popup): fix esl-popup infinitely created independently of placeholder state
  • Loading branch information
ala-n authored Apr 3, 2024
2 parents 8e86fdd + 63ae414 commit 929b6dd
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 929b6dd

Please sign in to comment.