@douyinfe/semi-ui 2.38.2 → 2.38.3-alpha.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.
@@ -58098,7 +58098,16 @@ class DropdownItem extends BaseComponent {
58098
58098
  const events = {};
58099
58099
  if (!disabled) {
58100
58100
  ['onClick', 'onMouseEnter', 'onMouseLeave', 'onContextMenu'].forEach(eventName => {
58101
- events[eventName] = this.props[eventName];
58101
+ if (eventName === "onClick") {
58102
+ events["onMouseDown"] = e => {
58103
+ var _a, _b;
58104
+ if (e.button === 0) {
58105
+ (_b = (_a = this.props)[eventName]) === null || _b === void 0 ? void 0 : _b.call(_a, e);
58106
+ }
58107
+ };
58108
+ } else {
58109
+ events[eventName] = this.props[eventName];
58110
+ }
58102
58111
  });
58103
58112
  }
58104
58113
  let tick = null;
@@ -87609,7 +87618,7 @@ class TreeSelect extends BaseComponent {
87609
87618
  } = item && treeNodeLabelProp in item ? renderSelectedItem(item, {
87610
87619
  index,
87611
87620
  onClose
87612
- }) : null;
87621
+ }) : {};
87613
87622
  if (isNull_default()(content) || isUndefined_default()(content)) {
87614
87623
  return;
87615
87624
  }
@@ -87907,7 +87916,7 @@ class TreeSelect extends BaseComponent {
87907
87916
  } = item && treeNodeLabelProp in item ? renderSelectedItem(item, {
87908
87917
  index: idx,
87909
87918
  onClose
87910
- }) : null;
87919
+ }) : {};
87911
87920
  if (isRenderInTag) {
87912
87921
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Tag, Object.assign({}, tagProps), content);
87913
87922
  } else {