@sanity/ui 0.37.8 → 0.37.9

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.
@@ -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) 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 () {