Skip to content

Commit

Permalink
fix(popup): start positioner only if active
Browse files Browse the repository at this point in the history
  • Loading branch information
Masty88 committed Nov 19, 2024
1 parent 620edc2 commit 9ab830a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/popup/popup.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ export default class SlPopup extends ShoelaceElement {

// Start the positioner after the first update
await this.updateComplete;
this.start();
if (this.active) {
this.start();
}
}

disconnectedCallback() {
Expand Down

0 comments on commit 9ab830a

Please sign in to comment.