@homebound/beam 4.29.0 → 4.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -13196,7 +13196,9 @@ function Popover(props) {
13196
13196
  if (triggerRef.current?.contains(e)) {
13197
13197
  return true;
13198
13198
  }
13199
- return !(e.closest(".tribute-container") || e.closest("[role='dialog']") || e.closest("[role='alert']"));
13199
+ const dialog = e.closest("[role='dialog']");
13200
+ const isDialogOnTop = !!dialog && !dialog.contains(triggerRef.current);
13201
+ return !(e.closest(".tribute-container") || isDialogOnTop || e.closest("[role='alert']"));
13200
13202
  },
13201
13203
  ...others
13202
13204
  },