@sanity/ui 2.0.0-gamma.1 → 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
@@ -2445,7 +2445,7 @@ const Button = react.forwardRef(function Button2(props, ref) {
2445
2445
  iconRight,
2446
2446
  justify: justifyProp = "center",
2447
2447
  loading,
2448
- mode = "ghost",
2448
+ mode = "default",
2449
2449
  padding: paddingProp = 3,
2450
2450
  paddingX: paddingXProp,
2451
2451
  paddingY: paddingYProp,
@@ -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
  }