Skip to content

Commit

Permalink
fix(modal): close on disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
skhamvon authored and dpellier committed Feb 2, 2024
1 parent 10c9432 commit 8655b3c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ export class OsdsModal implements OdsModalAttribute, OdsModalMethod, OdsModalEve
this.handleShownState();
}

disconnectedCallback(): void {
this.modal?.close();
}

render(): JSX.Element {
const { color, headline, dismissible, masked } = this;

Expand Down

0 comments on commit 8655b3c

Please sign in to comment.