@sanity/ui 0.37.8 → 0.37.11
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/lib/dts/src/primitives/tooltip/tooltip.d.ts.map +1 -1
- package/lib/sanity-ui.js +6 -1
- package/lib/sanity-ui.js.map +1 -1
- package/lib/sanity-ui.modern.js +95 -90
- package/lib/sanity-ui.modern.js.map +1 -1
- package/lib/sanity-ui.module.js +6 -1
- package/lib/sanity-ui.module.js.map +1 -1
- package/package.json +4 -4
- package/src/primitives/tooltip/tooltip.tsx +7 -1
package/lib/sanity-ui.module.js
CHANGED
|
@@ -6796,7 +6796,12 @@ var Tooltip = /*#__PURE__*/forwardRef(function Tooltip(props, ref) {
|
|
|
6796
6796
|
};
|
|
6797
6797
|
}, [isOpen, referenceElement]);
|
|
6798
6798
|
useEffect(function () {
|
|
6799
|
-
if (forceUpdate)
|
|
6799
|
+
if (forceUpdate) {
|
|
6800
|
+
try {
|
|
6801
|
+
forceUpdate();
|
|
6802
|
+
} catch (_) {// ignore caught error
|
|
6803
|
+
}
|
|
6804
|
+
}
|
|
6800
6805
|
}, [forceUpdate, content]); // Close when `disabled` changes to `true`
|
|
6801
6806
|
|
|
6802
6807
|
useEffect(function () {
|