@kdcloudjs/kdesign 1.7.33-stable.11 → 1.7.33-stable.12
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/CHANGELOG.md +20 -0
- package/dist/kdesign.css +1 -1
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +2 -2
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +1 -1
- package/dist/kdesign.min.js +2 -2
- package/dist/kdesign.min.js.map +1 -1
- package/es/_utils/usePopper.js +1 -1
- package/lib/_utils/usePopper.js +1 -1
- package/package.json +1 -1
package/es/_utils/usePopper.js
CHANGED
|
@@ -415,7 +415,7 @@ function usePopper(locatorElement, popperElement, props) {
|
|
|
415
415
|
setArrowPos(_arrowPos);
|
|
416
416
|
setNextPlacement(currentPlacement);
|
|
417
417
|
}
|
|
418
|
-
}, [locatorRef, popperRef, container, trigger, mousePos, autoPlacement, gap, arrowOffset, arrowSize, arrowWidth]);
|
|
418
|
+
}, [locatorRef, popperRef, container, trigger, mousePos, autoPlacement, gap, arrowOffset, arrowSize, arrowWidth, align === null || align === void 0 ? void 0 : align.left, align === null || align === void 0 ? void 0 : align.top]);
|
|
419
419
|
useEffect(function () {
|
|
420
420
|
if (canAlign) {
|
|
421
421
|
alignPopper();
|
package/lib/_utils/usePopper.js
CHANGED
|
@@ -429,7 +429,7 @@ function usePopper(locatorElement, popperElement, props) {
|
|
|
429
429
|
setArrowPos(_arrowPos);
|
|
430
430
|
setNextPlacement(currentPlacement);
|
|
431
431
|
}
|
|
432
|
-
}, [locatorRef, popperRef, container, trigger, mousePos, autoPlacement, gap, arrowOffset, arrowSize, arrowWidth]);
|
|
432
|
+
}, [locatorRef, popperRef, container, trigger, mousePos, autoPlacement, gap, arrowOffset, arrowSize, arrowWidth, align === null || align === void 0 ? void 0 : align.left, align === null || align === void 0 ? void 0 : align.top]);
|
|
433
433
|
(0, _react.useEffect)(function () {
|
|
434
434
|
if (canAlign) {
|
|
435
435
|
alignPopper();
|