tamagui 1.125.21 → 1.125.22

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.
@@ -24884,9 +24884,8 @@ var require_Popover_native = __commonJS({
24884
24884
  // @ts-ignore
24885
24885
  ref: composedTriggerRef,
24886
24886
  onPress: (0, import_helpers.composeEventHandlers)(props.onPress, context.onOpenToggle)
24887
- });
24888
- if (anchorTo) {
24889
- var virtualRef = {
24887
+ }), virtualRef = React4.useMemo(function() {
24888
+ return anchorTo ? {
24890
24889
  current: {
24891
24890
  getBoundingClientRect: function() {
24892
24891
  return import_constants4.isWeb ? DOMRect.fromRect(anchorTo) : anchorTo;
@@ -24900,16 +24899,21 @@ var require_Popover_native = __commonJS({
24900
24899
  }
24901
24900
  }
24902
24901
  }
24903
- };
24904
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_popper.PopperAnchor, {
24905
- virtualRef,
24906
- __scopePopper: __scopePopover || POPOVER_SCOPE,
24907
- children: trigger
24908
- });
24909
- }
24902
+ } : null;
24903
+ }, [
24904
+ context.anchorTo,
24905
+ anchorTo == null ? void 0 : anchorTo.x,
24906
+ anchorTo == null ? void 0 : anchorTo.y,
24907
+ anchorTo == null ? void 0 : anchorTo.x,
24908
+ anchorTo == null ? void 0 : anchorTo.height,
24909
+ anchorTo == null ? void 0 : anchorTo.width
24910
+ ]);
24910
24911
  return context.hasCustomAnchor ? trigger : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_popper.PopperAnchor, {
24912
+ ...virtualRef && {
24913
+ virtualRef
24914
+ },
24911
24915
  __scopePopper: __scopePopover || POPOVER_SCOPE,
24912
- asChild: !0,
24916
+ asChild: rest.asChild,
24913
24917
  children: trigger
24914
24918
  });
24915
24919
  }), PopoverContent = import_popper.PopperContentFrame.extractable(/* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {