@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/ui",
3
- "version": "0.37.8",
3
+ "version": "0.37.11",
4
4
  "sideEffects": false,
5
5
  "source": "./src/index.ts",
6
6
  "exports": {
@@ -33,8 +33,8 @@
33
33
  "@juggle/resize-observer": "^3.3.1",
34
34
  "@popperjs/core": "^2.11.5",
35
35
  "@reach/auto-id": "^0.16.0",
36
- "@sanity/color": "^2.1.10",
37
- "@sanity/icons": "^1.2.8",
36
+ "@sanity/color": "^2.1.11",
37
+ "@sanity/icons": "^1.3.0",
38
38
  "framer-motion": "6.3.0",
39
39
  "popper-max-size-modifier": "^0.2.0",
40
40
  "react-is": "^17.0.2",
@@ -72,5 +72,5 @@
72
72
  "publishConfig": {
73
73
  "access": "public"
74
74
  },
75
- "gitHead": "3e5019576b08ba4f6bdaaf0a521a69e9c6526199"
75
+ "gitHead": "f0f8d7528ca4fa666334830b00dcc1443330c753"
76
76
  }
@@ -118,7 +118,13 @@ export const Tooltip = forwardRef(function Tooltip(
118
118
  }, [isOpen, referenceElement])
119
119
 
120
120
  useEffect(() => {
121
- if (forceUpdate) forceUpdate()
121
+ if (forceUpdate) {
122
+ try {
123
+ forceUpdate()
124
+ } catch (_) {
125
+ // ignore caught error
126
+ }
127
+ }
122
128
  }, [forceUpdate, content])
123
129
 
124
130
  // Close when `disabled` changes to `true`