@kdcloudjs/kdesign 1.7.33-stable.14 → 1.7.33-stable.15
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 +1087 -847
- package/dist/kdesign.css +1 -1
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +1145 -2656
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +1 -1
- package/dist/kdesign.min.js +5 -5
- package/dist/kdesign.min.js.map +1 -1
- package/es/_utils/usePopper.js +4 -0
- package/lib/_utils/usePopper.js +4 -0
- package/package.json +1 -1
package/es/_utils/usePopper.js
CHANGED
|
@@ -245,6 +245,10 @@ function usePopper(locatorElement, popperElement, props) {
|
|
|
245
245
|
right = _realDom$getBoundingC.right,
|
|
246
246
|
height = _realDom$getBoundingC.height,
|
|
247
247
|
width = _realDom$getBoundingC.width;
|
|
248
|
+
if (height === 0 && width === 0) {
|
|
249
|
+
hidePopper();
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
248
252
|
var _getOffsetPos = getOffsetPos(container),
|
|
249
253
|
containerTop = _getOffsetPos.top,
|
|
250
254
|
containerLeft = _getOffsetPos.left;
|
package/lib/_utils/usePopper.js
CHANGED
|
@@ -259,6 +259,10 @@ function usePopper(locatorElement, popperElement, props) {
|
|
|
259
259
|
right = _realDom$getBoundingC.right,
|
|
260
260
|
height = _realDom$getBoundingC.height,
|
|
261
261
|
width = _realDom$getBoundingC.width;
|
|
262
|
+
if (height === 0 && width === 0) {
|
|
263
|
+
hidePopper();
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
262
266
|
var _getOffsetPos = getOffsetPos(container),
|
|
263
267
|
containerTop = _getOffsetPos.top,
|
|
264
268
|
containerLeft = _getOffsetPos.left;
|