We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 94fb15d + a060b8b commit 23aeac0Copy full SHA for 23aeac0
2 files changed
.changeset/fix-popover-click.md
@@ -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
@@ -351,6 +351,9 @@ export class PfPopover extends LitElement {
351
};
352
353
#outsideClick(event: MouseEvent) {
354
+ if (this.#hideDialog) {
355
+ return;
356
+ }
357
const path = event.composedPath();
358
if (!path.includes(this) && !path.includes(this.#referenceTrigger as HTMLElement)) {
359
this.hide();
0 commit comments