@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/ui",
3
- "version": "2.3.6-canary.6",
3
+ "version": "2.3.7-canary.0",
4
4
  "keywords": [
5
5
  "sanity",
6
6
  "ui",
@@ -364,6 +364,10 @@ export const Tooltip = forwardRef(function Tooltip(
364
364
  )
365
365
 
366
366
  const childRef = useRef<HTMLElement | null>(null)
367
+
368
+ // Merge refs so that any ref we are overriding is called as well
369
+ useImperativeHandle((childProp as any)?.ref, () => childRef.current)
370
+
367
371
  const child = useMemo(() => {
368
372
  if (!childProp) return null
369
373