Skip to content

Commit

Permalink
* popover: fix dismiss button not work in inherit class.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Aug 10, 2024
1 parent f5f9fcf commit 8adc347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/popover/src/vanilla/popover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8adc347

Please sign in to comment.