Skip to content

Commit a20d69b

Browse files
committed
fix: reset scroll parents every time the method is called
1 parent f817422 commit a20d69b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/uui-popover-container/lib/uui-popover-container.element.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,12 +344,12 @@ export class UUIPopoverContainerElement extends LitElement {
344344
document.removeEventListener('scroll', this.#initUpdate);
345345
}
346346

347-
#getScrollParents(): any {
348-
if (!this.#targetElement) return;
349-
347+
#getScrollParents(): void {
350348
// Clear previous scroll parents to avoid duplicates
351349
this.#scrollParents = [];
352350

351+
if (!this.#targetElement) return;
352+
353353
let style = getComputedStyle(this.#targetElement);
354354
if (style.position === 'fixed') {
355355
return;

0 commit comments

Comments
 (0)