@syncfusion/ej2-multicolumn-combobox 28.1.39 → 28.2.3
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/dist/ej2-multicolumn-combobox.umd.min.js +2 -2
- package/dist/ej2-multicolumn-combobox.umd.min.js.map +1 -1
- package/dist/es6/ej2-multicolumn-combobox.es2015.js +16 -32
- package/dist/es6/ej2-multicolumn-combobox.es2015.js.map +1 -1
- package/dist/es6/ej2-multicolumn-combobox.es5.js +16 -33
- package/dist/es6/ej2-multicolumn-combobox.es5.js.map +1 -1
- package/dist/global/ej2-multicolumn-combobox.min.js +2 -2
- package/dist/global/ej2-multicolumn-combobox.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +7 -7
- package/src/multicolumn-combobox/multi-column-combo-box.d.ts +1 -0
- package/src/multicolumn-combobox/multi-column-combo-box.js +16 -33
|
@@ -902,7 +902,6 @@ let MultiColumnComboBox = class MultiColumnComboBox extends Component {
|
|
|
902
902
|
};
|
|
903
903
|
this.trigger('select', eventArgs, (eventArgs) => {
|
|
904
904
|
if (!eventArgs.cancel && eventArgs.itemData) {
|
|
905
|
-
const selectedRecord = eventArgs.itemData;
|
|
906
905
|
const event = e;
|
|
907
906
|
const isUpdateVal = event.key === 'Enter' || event.key === 'Tab' || event.shiftKey && event.key === 'Tab' || event.altKey && event.key === 'ArrowUp';
|
|
908
907
|
if (!isKeyNav || (isKeyNav && isUpdateVal)) {
|
|
@@ -921,7 +920,7 @@ let MultiColumnComboBox = class MultiColumnComboBox extends Component {
|
|
|
921
920
|
this.isProtectedOnChange = true;
|
|
922
921
|
this.text = text || this.text;
|
|
923
922
|
this.value = value || this.value;
|
|
924
|
-
this.index = !isNullOrUndefined(index) ? index : this.index;
|
|
923
|
+
this.index = this.selectedRowIndex = !isNullOrUndefined(index) ? index : this.index;
|
|
925
924
|
this.isProtectedOnChange = prevOnChange;
|
|
926
925
|
if (!isInitial) {
|
|
927
926
|
this.triggerChangeEvent(eventArgs);
|
|
@@ -981,7 +980,7 @@ let MultiColumnComboBox = class MultiColumnComboBox extends Component {
|
|
|
981
980
|
filterDatas(dataSource, inputValue) {
|
|
982
981
|
const data = dataSource.filter((item) => {
|
|
983
982
|
const fieldText = this.updateFieldValue(this.fields.text, item);
|
|
984
|
-
return fieldText.toLowerCase().startsWith(inputValue.toLowerCase());
|
|
983
|
+
return inputValue && fieldText.toLowerCase().startsWith(inputValue.toLowerCase());
|
|
985
984
|
});
|
|
986
985
|
const exactData = dataSource.filter((item) => {
|
|
987
986
|
const fieldText = this.updateFieldValue(this.fields.text, item);
|
|
@@ -1177,21 +1176,19 @@ let MultiColumnComboBox = class MultiColumnComboBox extends Component {
|
|
|
1177
1176
|
}
|
|
1178
1177
|
this.hidePopup(e);
|
|
1179
1178
|
if (this.matchedRowEle && !isClearValues && val) {
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
this.isProtectedOnChange = prevOnChange;
|
|
1194
|
-
}, 100);
|
|
1179
|
+
const prevOnChange = this.isProtectedOnChange;
|
|
1180
|
+
this.isProtectedOnChange = true;
|
|
1181
|
+
const fieldText = this.updateFieldValue(this.fields.text, this.matchedContent);
|
|
1182
|
+
const fieldValue = this.updateFieldValue(this.fields.value, this.matchedContent);
|
|
1183
|
+
this.inputEle.value = fieldText;
|
|
1184
|
+
this.value = fieldValue;
|
|
1185
|
+
const selectIndex = this.findIndex(this.gridObj.currentViewData, this.matchedContent);
|
|
1186
|
+
this.index = selectIndex;
|
|
1187
|
+
this.text = fieldText;
|
|
1188
|
+
this.gridObj.selectRow(selectIndex);
|
|
1189
|
+
this.selectedGridRow(this.gridObj.getRowByIndex(selectIndex), e);
|
|
1190
|
+
this.previousItemElement = this.gridObj.getSelectedRows()[0];
|
|
1191
|
+
this.isProtectedOnChange = prevOnChange;
|
|
1195
1192
|
}
|
|
1196
1193
|
else {
|
|
1197
1194
|
if (this.isDataFiltered) {
|
|
@@ -1428,20 +1425,7 @@ let MultiColumnComboBox = class MultiColumnComboBox extends Component {
|
|
|
1428
1425
|
attributes(this.inputEle, { 'aria-expanded': 'true', 'aria-owns': this.element.id + '_popup', 'aria-controls': this.element.id });
|
|
1429
1426
|
if (!isInputOpen) {
|
|
1430
1427
|
if ((this.value || this.text || this.index)) {
|
|
1431
|
-
|
|
1432
|
-
let groupIndex;
|
|
1433
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1434
|
-
dataRows.forEach((data, index) => {
|
|
1435
|
-
if (this.fields.groupBy && isNullOrUndefined(data.data.items)) {
|
|
1436
|
-
if (isNullOrUndefined(groupIndex)) {
|
|
1437
|
-
groupIndex = 0;
|
|
1438
|
-
}
|
|
1439
|
-
else {
|
|
1440
|
-
groupIndex += 1;
|
|
1441
|
-
}
|
|
1442
|
-
}
|
|
1443
|
-
this.selectDataRow(data.data, !this.fields.groupBy ? index : groupIndex);
|
|
1444
|
-
});
|
|
1428
|
+
this.gridObj.selectRow(this.selectedRowIndex);
|
|
1445
1429
|
}
|
|
1446
1430
|
this.focusIn(e);
|
|
1447
1431
|
}
|