@sanity/ui 2.0.0 → 2.0.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
@@ -4240,8 +4240,9 @@ const Popover = react.memo(react.forwardRef(function Popover2(props, ref) {
4240
4240
  }
4241
4241
  }, [update, updateRef]);
4242
4242
  react.useEffect(() => {
4243
+ if (child) return;
4243
4244
  refs.setReference(referenceElement || null);
4244
- }, [referenceElement, refs]);
4245
+ }, [referenceElement, refs, child]);
4245
4246
  if (disabled) {
4246
4247
  return childProp || /* @__PURE__ */jsxRuntime.jsx(jsxRuntime.Fragment, {});
4247
4248
  }