@douyinfe/semi-ui 2.38.3-alpha.0 → 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;