diff --git a/lib/popover/src/vanilla/popover.ts b/lib/popover/src/vanilla/popover.ts index 0e7bb7a953..d1f0f3c982 100644 --- a/lib/popover/src/vanilla/popover.ts +++ b/lib/popover/src/vanilla/popover.ts @@ -595,7 +595,7 @@ $(() => { const clickedPopover = gid ? SHOWN_POPOVERS.get(gid) : null; if (clickedPopover) { const name = clickedPopover.options.name ?? clickedPopover.constructor.ZUI; - if ($target.closest(`[data-dismiss="${name}"]`).length) { + if ($target.closest(`[data-dismiss="popover"],[data-dismiss="${name}"]`).length) { clickedPopover.hide(); return; }