Skip to content

Commit 23aeac0

Browse files
authored
Merge branch 'main' into feat/label-link-variant
2 parents 94fb15d + a060b8b commit 23aeac0

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.changeset/fix-popover-click.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@patternfly/elements": patch
3+
---
4+
5+
`<pf-popover>`: clicking outside a popover no longer fires spurious
6+
hide events on other closed popovers.

elements/pf-popover/pf-popover.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,9 @@ export class PfPopover extends LitElement {
351351
};
352352

353353
#outsideClick(event: MouseEvent) {
354+
if (this.#hideDialog) {
355+
return;
356+
}
354357
const path = event.composedPath();
355358
if (!path.includes(this) && !path.includes(this.#referenceTrigger as HTMLElement)) {
356359
this.hide();

0 commit comments

Comments
 (0)