From 9ab830a891fd43982344288791a51555df121bfd Mon Sep 17 00:00:00 2001 From: Emanuele Mastaglia Date: Tue, 19 Nov 2024 16:43:19 +0100 Subject: [PATCH] fix(popup): start positioner only if active --- src/components/popup/popup.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/popup/popup.component.ts b/src/components/popup/popup.component.ts index 7941de527..0ea979938 100644 --- a/src/components/popup/popup.component.ts +++ b/src/components/popup/popup.component.ts @@ -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() {