@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.
- package/_base/_story/a11y.jsx +2 -2
- package/avatar/interface.ts +1 -1
- package/collapsible/_story/collapsible.stories.js +6 -6
- package/configProvider/_story/RTLDirection/RTLForm.jsx +1 -1
- package/dist/css/semi.css +5 -2
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +8 -5
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/avatar/interface.d.ts +1 -1
- package/lib/cjs/timePicker/TimePicker.js +1 -1
- package/lib/es/avatar/interface.d.ts +1 -1
- package/lib/es/timePicker/TimePicker.js +1 -1
- package/package.json +7 -7
- package/select/_story/select.stories.js +1 -1
- package/select/_story/select.stories.tsx +1 -1
- package/table/_story/Perf/Render/complex.jsx +1 -1
- package/table/_story/Perf/Render/resizableSelection.jsx +1 -1
- package/tagInput/_story/tagInput.stories.js +2 -2
- package/timePicker/TimePicker.tsx +1 -1
- package/upload/__test__/upload.test.js +9 -9
- package/upload/_story/upload.stories.js +5 -5
package/dist/umd/semi-ui.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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.
|
|
97679
|
+
this.foundation.handlePanelClose(clickedOutside, e);
|
|
97677
97680
|
}
|
|
97678
97681
|
};
|
|
97679
97682
|
|