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