@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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.6.2",
2
+ "version": "0.6.3",
3
3
  "license": "CC-BY-4.0",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
@@ -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(