@kdcloudjs/kdesign 1.3.0 → 1.3.1

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/dist/kdesign.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @kdcloudjs/kdesign v1.2.3
3
+ * @kdcloudjs/kdesign v1.3.0
4
4
  *
5
5
  * Copyright 2020-present, Kingdee, Inc.
6
6
  * All rights reserved.
@@ -27626,8 +27626,19 @@ var InternalSelect = function InternalSelect(props, ref) {
27626
27626
  onDropdownVisibleChange && onDropdownVisibleChange(!optionShow);
27627
27627
  } // handleClear()
27628
27628
 
27629
- }; // 点击下拉列表中某项回调
27629
+ };
27630
+
27631
+ Object(react__WEBPACK_IMPORTED_MODULE_18__["useEffect"])(function () {
27632
+ selectionRef.current.addEventListener('mouseup', function (e) {
27633
+ var _e$target;
27634
+
27635
+ var isCloseBtn = (e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.className.indexOf('kd-tag-close-icon')) > -1;
27630
27636
 
27637
+ if (isCloseBtn) {
27638
+ e.stopPropagation();
27639
+ }
27640
+ });
27641
+ }, []); // 点击下拉列表中某项回调
27631
27642
 
27632
27643
  var handleOption = function handleOption(key, label, isSelected) {
27633
27644
  var onSelect = selectProps.onSelect,