@sheinx/hooks 3.2.4 → 3.2.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -258,7 +258,7 @@ var usePositionStyle = exports.usePositionStyle = function usePositionStyle(conf
|
|
258
258
|
setStyle(newStyle);
|
259
259
|
}
|
260
260
|
});
|
261
|
-
(0, _react.useEffect)(updateStyle, [show, position, absolute, updateKey]);
|
261
|
+
(0, _react.useEffect)(updateStyle, [show, position, absolute, updateKey, fixedWidth]);
|
262
262
|
return style;
|
263
263
|
};
|
264
264
|
var _default = exports.default = usePositionStyle;
|
@@ -248,7 +248,7 @@ export var usePositionStyle = function usePositionStyle(config) {
|
|
248
248
|
setStyle(newStyle);
|
249
249
|
}
|
250
250
|
});
|
251
|
-
useEffect(updateStyle, [show, position, absolute, updateKey]);
|
251
|
+
useEffect(updateStyle, [show, position, absolute, updateKey, fixedWidth]);
|
252
252
|
return style;
|
253
253
|
};
|
254
254
|
export default usePositionStyle;
|