@syncfusion/ej2-dropdowns 20.4.40 → 20.4.42
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/CHANGELOG.md +14 -0
- package/README.md +1 -1
- package/dist/ej2-dropdowns.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +25 -4
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +25 -4
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +2 -2
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +11 -11
- package/src/drop-down-base/drop-down-base.js +1 -1
- package/src/mention/mention.js +12 -3
- package/src/multi-select/multi-select.d.ts +2 -0
- package/src/multi-select/multi-select.js +12 -0
- package/.eslintrc.json +0 -259
- package/tslint.json +0 -111
|
@@ -626,10 +626,10 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
626
626
|
this.isDataFetched = true;
|
|
627
627
|
}
|
|
628
628
|
ulElement = this.renderItems(listItems, fields);
|
|
629
|
+
this.onActionComplete(ulElement, listItems, e);
|
|
629
630
|
if (this.groupTemplate) {
|
|
630
631
|
this.renderGroupTemplate(ulElement);
|
|
631
632
|
}
|
|
632
|
-
this.onActionComplete(ulElement, listItems, e);
|
|
633
633
|
this.isRequested = false;
|
|
634
634
|
this.bindChildItems(listItems, ulElement, fields, e);
|
|
635
635
|
}
|
|
@@ -8932,6 +8932,8 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
8932
8932
|
this.isValidKey = false;
|
|
8933
8933
|
this.selectAllEventData = [];
|
|
8934
8934
|
this.selectAllEventEle = [];
|
|
8935
|
+
this.resetMainList = null;
|
|
8936
|
+
this.resetFilteredData = false;
|
|
8935
8937
|
this.scrollFocusStatus = false;
|
|
8936
8938
|
this.keyDownStatus = false;
|
|
8937
8939
|
}
|
|
@@ -9675,6 +9677,10 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
9675
9677
|
}
|
|
9676
9678
|
}
|
|
9677
9679
|
this.updateDataList();
|
|
9680
|
+
if (this.resetMainList) {
|
|
9681
|
+
this.mainList = this.resetMainList;
|
|
9682
|
+
this.resetMainList = null;
|
|
9683
|
+
}
|
|
9678
9684
|
this.refreshListItems(null);
|
|
9679
9685
|
if (this.mode !== 'Box' && this.mode !== 'CheckBox') {
|
|
9680
9686
|
this.updateDelimView();
|
|
@@ -11084,6 +11090,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
11084
11090
|
});
|
|
11085
11091
|
}
|
|
11086
11092
|
search(e) {
|
|
11093
|
+
this.resetFilteredData = true;
|
|
11087
11094
|
if (!isNullOrUndefined(e)) {
|
|
11088
11095
|
this.keyCode = e.keyCode;
|
|
11089
11096
|
}
|
|
@@ -12273,6 +12280,11 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
12273
12280
|
onPropertyChanged(newProp, oldProp) {
|
|
12274
12281
|
if (newProp.dataSource && !isNullOrUndefined(Object.keys(newProp.dataSource))
|
|
12275
12282
|
|| newProp.query && !isNullOrUndefined(Object.keys(newProp.query))) {
|
|
12283
|
+
if (this.resetFilteredData) {
|
|
12284
|
+
// The filtered data is not being reset in the component after the user focuses out.
|
|
12285
|
+
this.resetMainList = !this.resetMainList ? this.mainList : this.resetMainList;
|
|
12286
|
+
this.resetFilteredData = false;
|
|
12287
|
+
}
|
|
12276
12288
|
this.mainList = null;
|
|
12277
12289
|
this.mainData = null;
|
|
12278
12290
|
this.isFirstClick = false;
|
|
@@ -16456,9 +16468,18 @@ let Mention = class Mention extends DropDownBase {
|
|
|
16456
16468
|
const args = { cancel: false };
|
|
16457
16469
|
this.trigger('beforeOpen', args, (args) => {
|
|
16458
16470
|
if (!args.cancel) {
|
|
16459
|
-
|
|
16460
|
-
|
|
16461
|
-
|
|
16471
|
+
let popupEle;
|
|
16472
|
+
if (isNullOrUndefined(this.target)) {
|
|
16473
|
+
popupEle = this.createElement('div', {
|
|
16474
|
+
id: this.inputElement.id + '_popup', className: 'e-mention e-popup ' + (this.cssClass != null ? this.cssClass : '')
|
|
16475
|
+
});
|
|
16476
|
+
}
|
|
16477
|
+
else {
|
|
16478
|
+
popupEle = this.element;
|
|
16479
|
+
if (this.cssClass != null) {
|
|
16480
|
+
addClass([popupEle], this.cssClass.split(' '));
|
|
16481
|
+
}
|
|
16482
|
+
}
|
|
16462
16483
|
if (!isNullOrUndefined(this.target)) {
|
|
16463
16484
|
popupEle.id = this.inputElement.id + '_popup';
|
|
16464
16485
|
addClass([popupEle], ['e-mention', 'e-popup', 'e-popup-close']);
|