@kdcloudjs/kdesign 1.7.33-stable.13 → 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.
@@ -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;
@@ -462,10 +462,6 @@ var InternalSelect = function InternalSelect(props, ref) {
462
462
  var _a;
463
463
  return (_a = searchRef.current) === null || _a === void 0 ? void 0 : _a.focus();
464
464
  },
465
- onBlur: function onBlur() {
466
- var _a;
467
- return (_a = searchRef.current) === null || _a === void 0 ? void 0 : _a.blur();
468
- },
469
465
  onKeyDown: onInternalKeyDown
470
466
  }, renderSingle()));
471
467
  };
@@ -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;
@@ -474,10 +474,6 @@ var InternalSelect = function InternalSelect(props, ref) {
474
474
  var _a;
475
475
  return (_a = searchRef.current) === null || _a === void 0 ? void 0 : _a.focus();
476
476
  },
477
- onBlur: function onBlur() {
478
- var _a;
479
- return (_a = searchRef.current) === null || _a === void 0 ? void 0 : _a.blur();
480
- },
481
477
  onKeyDown: onInternalKeyDown
482
478
  }, renderSingle()));
483
479
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/kdesign",
3
- "version": "1.7.33-stable.13",
3
+ "version": "1.7.33-stable.15",
4
4
  "description": "KDesign 金蝶前端react 组件库",
5
5
  "title": "kdesign",
6
6
  "keywords": [