@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.compiled.mjs +3 -1
- package/dist/index.compiled.mjs.map +1 -1
- package/dist/index.esm.js +3 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/core/primitives/tooltip/tooltip.tsx +4 -0
package/package.json
CHANGED
|
@@ -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
|
|