@saleor/macaw-ui 0.6.2 → 0.6.3
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/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +2 -2
- package/package.json +1 -1
- package/src/Tooltip/Tooltip.tsx +4 -4
package/package.json
CHANGED
package/src/Tooltip/Tooltip.tsx
CHANGED
|
@@ -110,10 +110,6 @@ export const Tooltip: React.FC<TooltipProps> = ({
|
|
|
110
110
|
|
|
111
111
|
const classes = useStyles({ variant, side });
|
|
112
112
|
|
|
113
|
-
if (disabled) {
|
|
114
|
-
return children;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
113
|
const mountReference = React.useCallback(
|
|
118
114
|
mergeRefs(reference, referenceRef),
|
|
119
115
|
[]
|
|
@@ -124,6 +120,10 @@ export const Tooltip: React.FC<TooltipProps> = ({
|
|
|
124
120
|
update();
|
|
125
121
|
}, []);
|
|
126
122
|
|
|
123
|
+
if (disabled) {
|
|
124
|
+
return children;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
127
|
return (
|
|
128
128
|
<>
|
|
129
129
|
{React.cloneElement(
|