@sanity/ui 2.3.5 → 2.3.6-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.esm.js CHANGED
@@ -4470,7 +4470,9 @@ const Root$a = styled(Layer)`
4470
4470
  ref.current = node, refs.setFloating(node);
4471
4471
  },
4472
4472
  [refs]
4473
- ), childRef = useRef(null), child = useMemo(() => childProp ? cloneElement(childProp, {
4473
+ ), childRef = useRef(null);
4474
+ useImperativeHandle(childProp == null ? void 0 : childProp.ref, () => childRef.current);
4475
+ const child = useMemo(() => childProp ? cloneElement(childProp, {
4474
4476
  onBlur: handleBlur,
4475
4477
  onFocus: handleFocus,
4476
4478
  onMouseEnter: handleMouseEnter,