@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.js CHANGED
@@ -4467,7 +4467,9 @@ const Root$a = styledComponents.styled(Layer)`
4467
4467
  ref.current = node, refs.setFloating(node);
4468
4468
  },
4469
4469
  [refs]
4470
- ), childRef = react.useRef(null), child = react.useMemo(() => childProp ? react.cloneElement(childProp, {
4470
+ ), childRef = react.useRef(null);
4471
+ react.useImperativeHandle(childProp == null ? void 0 : childProp.ref, () => childRef.current);
4472
+ const child = react.useMemo(() => childProp ? react.cloneElement(childProp, {
4471
4473
  onBlur: handleBlur,
4472
4474
  onFocus: handleFocus,
4473
4475
  onMouseEnter: handleMouseEnter,