@douyinfe/semi-ui 2.16.0 → 2.16.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.
@@ -68148,7 +68148,10 @@ class menuFoundation_DropdownMenuFoundation extends foundation {
68148
68148
  for_each_default()(_context3 = this.menuItemNodes).call(_context3, item => {
68149
68149
  var _context4;
68150
68150
 
68151
- this.firstChars.push(trim_default()(_context4 = item.textContent).call(_context4)[0].toLowerCase());
68151
+ var _a; // the menuItemNodes can be an component and not exit textContent
68152
+
68153
+
68154
+ this.firstChars.push((_a = trim_default()(_context4 = item.textContent).call(_context4)[0]) === null || _a === void 0 ? void 0 : _a.toLowerCase());
68152
68155
  });
68153
68156
  } // get the currently focused menu item
68154
68157
 
@@ -68178,8 +68181,8 @@ class menuFoundation_DropdownMenuFoundation extends foundation {
68178
68181
 
68179
68182
  default:
68180
68183
  if (isPrintableCharacter(event.key)) {
68181
- this.setFocusByFirstCharacter(curItem, event.key);
68182
- handlePrevent(event);
68184
+ this.setFocusByFirstCharacter(curItem, event.key); // it can be an input on Dropdown, handlePrevent may affect the input of the component
68185
+ // handlePrevent(event);
68183
68186
  }
68184
68187
 
68185
68188
  break;
@@ -97015,7 +97018,7 @@ class foundation_TimePickerFoundation extends foundation {
97015
97018
  this._adapter.notifyOpenChange(true);
97016
97019
  }
97017
97020
 
97018
- hanldePanelClose(clickedOutside, e) {
97021
+ handlePanelClose(clickedOutside, e) {
97019
97022
  if (!this._isControlledComponent('open')) {
97020
97023
  this._adapter.unregisterClickOutSide();
97021
97024
 
@@ -97673,7 +97676,7 @@ class TimePicker_TimePicker extends baseComponent_BaseComponent {
97673
97676
 
97674
97677
  if (!isInTimepicker && !isInPanel) {
97675
97678
  const clickedOutside = true;
97676
- this.foundation.hanldePanelClose(clickedOutside, e);
97679
+ this.foundation.handlePanelClose(clickedOutside, e);
97677
97680
  }
97678
97681
  };
97679
97682