@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.js CHANGED
@@ -12705,7 +12705,9 @@ function Popover(props) {
12705
12705
  if (triggerRef.current?.contains(e)) {
12706
12706
  return true;
12707
12707
  }
12708
- return !(e.closest(".tribute-container") || e.closest("[role='dialog']") || e.closest("[role='alert']"));
12708
+ const dialog = e.closest("[role='dialog']");
12709
+ const isDialogOnTop = !!dialog && !dialog.contains(triggerRef.current);
12710
+ return !(e.closest(".tribute-container") || isDialogOnTop || e.closest("[role='alert']"));
12709
12711
  },
12710
12712
  ...others
12711
12713
  },