@douyinfe/semi-foundation 2.17.0 → 2.17.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.
@@ -153,6 +153,9 @@ class AutoCompleteFoundation<P = Record<string, any>, S = Record<string, any>> e
153
153
  this._adapter.notifySearch(inputValue);
154
154
  this._adapter.notifyChange(inputValue);
155
155
  this._modifyFocusIndex(inputValue);
156
+ if (!this.isPanelOpen){
157
+ this.openDropdown();
158
+ }
156
159
  }
157
160
 
158
161
  handleSelect(option: StateOptionItem, optionIndex?: number): void {
@@ -389,7 +392,7 @@ class AutoCompleteFoundation<P = Record<string, any>, S = Record<string, any>> e
389
392
  if (!visible){
390
393
  this.openDropdown();
391
394
  } else {
392
- if (focusIndex !== undefined && focusIndex !== -1 && options.length !== 0) {
395
+ if (focusIndex !== undefined && focusIndex !== -1 && options.length !== 0) {
393
396
  const visibleOptions = options.filter((item: StateOptionItem) => item.show);
394
397
  const selectedOption = visibleOptions[focusIndex];
395
398
  this.handleSelect(selectedOption, focusIndex);
@@ -192,6 +192,10 @@ class AutoCompleteFoundation extends _foundation.default {
192
192
  this._adapter.notifyChange(inputValue);
193
193
 
194
194
  this._modifyFocusIndex(inputValue);
195
+
196
+ if (!this.isPanelOpen) {
197
+ this.openDropdown();
198
+ }
195
199
  }
196
200
 
197
201
  handleSelect(option, optionIndex) {
@@ -400,8 +400,8 @@ class TableFoundation extends _foundation.default {
400
400
  filteredData = new _map.default();
401
401
  }
402
402
 
403
- (0, _each2.default)(currentFilteredValue, value => {
404
- (0, _each2.default)(dataSource, record => {
403
+ (0, _each2.default)(dataSource, record => {
404
+ (0, _each2.default)(currentFilteredValue, value => {
405
405
  const childrenRecords = (0, _get2.default)(record, childrenRecordName);
406
406
  const recordKey = this.getRecordKey(record);
407
407
  let filteredChildren;
@@ -168,6 +168,10 @@ class AutoCompleteFoundation extends BaseFoundation {
168
168
  this._adapter.notifyChange(inputValue);
169
169
 
170
170
  this._modifyFocusIndex(inputValue);
171
+
172
+ if (!this.isPanelOpen) {
173
+ this.openDropdown();
174
+ }
171
175
  }
172
176
 
173
177
  handleSelect(option, optionIndex) {
@@ -360,8 +360,8 @@ class TableFoundation extends BaseFoundation {
360
360
  filteredData = new _Map();
361
361
  }
362
362
 
363
- _each(currentFilteredValue, value => {
364
- _each(dataSource, record => {
363
+ _each(dataSource, record => {
364
+ _each(currentFilteredValue, value => {
365
365
  const childrenRecords = _get(record, childrenRecordName);
366
366
 
367
367
  const recordKey = this.getRecordKey(record);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-foundation",
3
- "version": "2.17.0",
3
+ "version": "2.17.1",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build:lib": "node ./scripts/compileLib.js",
@@ -24,7 +24,7 @@
24
24
  "*.scss",
25
25
  "*.css"
26
26
  ],
27
- "gitHead": "802e57ecc50de44c7ad4b2322bdd864eb9727cc3",
27
+ "gitHead": "e2dfadcc7f24b9af6cab08b64ac0ead052219961",
28
28
  "devDependencies": {
29
29
  "@babel/plugin-proposal-decorators": "^7.15.8",
30
30
  "@babel/plugin-transform-runtime": "^7.15.8",
@@ -393,8 +393,8 @@ class TableFoundation<RecordType> extends BaseFoundation<TableAdapter<RecordType
393
393
  dataSource = Array.from(filteredData && filteredData.values());
394
394
  filteredData = new Map();
395
395
  }
396
- each(currentFilteredValue, value => {
397
- each(dataSource, record => {
396
+ each(dataSource, record => {
397
+ each(currentFilteredValue, value => {
398
398
  const childrenRecords = get(record, childrenRecordName);
399
399
  const recordKey = this.getRecordKey(record);
400
400