@sanity/ui 2.3.6-canary.6 → 2.3.7-canary.0

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
@@ -4446,7 +4446,9 @@ const Root$a = styledComponents.styled(Layer)`
4446
4446
  ref.current = node, refs.setFloating(node);
4447
4447
  },
4448
4448
  [refs]
4449
- ), childRef = react.useRef(null), child = react.useMemo(() => childProp ? react.cloneElement(childProp, {
4449
+ ), childRef = react.useRef(null);
4450
+ react.useImperativeHandle(childProp == null ? void 0 : childProp.ref, () => childRef.current);
4451
+ const child = react.useMemo(() => childProp ? react.cloneElement(childProp, {
4450
4452
  onBlur: handleBlur,
4451
4453
  onFocus: handleFocus,
4452
4454
  onMouseEnter: handleMouseEnter,