@syncfusion/ej2-dropdowns 20.4.52 → 20.4.54
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/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 +6 -5
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +6 -5
- 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 +8 -8
- package/src/common/incremental-search.js +1 -1
- package/src/drop-down-list/drop-down-list.d.ts +1 -0
- package/src/drop-down-list/drop-down-list.js +3 -2
- package/src/drop-down-tree/drop-down-tree.js +1 -2
- package/src/multi-select/multi-select.js +1 -0
|
@@ -95,7 +95,7 @@ function Search(inputVal, items, searchType, ignoreCase, dataSource, fields, typ
|
|
|
95
95
|
let fieldValue = fields.text.split('.');
|
|
96
96
|
dataSource.filter(function (data) {
|
|
97
97
|
Array.prototype.slice.call(fieldValue).forEach(function (value) {
|
|
98
|
-
if (type === 'object' && checkField.textContent.toString().indexOf(data[value]) !== -1 && checkField.getAttribute('data-value') === data[fields.value] || type === 'string' && checkField.textContent.toString().indexOf(data) !== -1) {
|
|
98
|
+
if (type === 'object' && checkField.textContent.toString().indexOf(data[value]) !== -1 && checkField.getAttribute('data-value') === data[fields.value].toString() || type === 'string' && checkField.textContent.toString().indexOf(data) !== -1) {
|
|
99
99
|
filterValue = type === 'object' ? data[value] : data;
|
|
100
100
|
}
|
|
101
101
|
});
|
|
@@ -3241,6 +3241,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
3241
3241
|
}
|
|
3242
3242
|
},
|
|
3243
3243
|
open: () => {
|
|
3244
|
+
EventHandler.remove(document, 'mousedown', this.onDocumentClick);
|
|
3244
3245
|
EventHandler.add(document, 'mousedown', this.onDocumentClick, this);
|
|
3245
3246
|
this.isPopupOpen = true;
|
|
3246
3247
|
const actionList = this.actionCompleteData && this.actionCompleteData.ulElement &&
|
|
@@ -3419,10 +3420,9 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
3419
3420
|
}
|
|
3420
3421
|
closePopup(delay, e) {
|
|
3421
3422
|
this.isTyped = false;
|
|
3422
|
-
if (!(this.popupObj && document.body.contains(this.popupObj.element) && this.beforePopupOpen)) {
|
|
3423
|
+
if (!(this.popupObj && document.body.contains(this.popupObj.element) && (this.beforePopupOpen || this.isEventCancel))) {
|
|
3423
3424
|
return;
|
|
3424
3425
|
}
|
|
3425
|
-
EventHandler.remove(document, 'mousedown', this.onDocumentClick);
|
|
3426
3426
|
this.isActive = false;
|
|
3427
3427
|
this.filterInputObj = null;
|
|
3428
3428
|
this.isDropDownClick = false;
|
|
@@ -3471,6 +3471,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
3471
3471
|
const popupInstance = this.popupObj;
|
|
3472
3472
|
const eventArgs = { popup: popupInstance, cancel: false, animation: animModel, event: e || null };
|
|
3473
3473
|
this.trigger('close', eventArgs, (eventArgs) => {
|
|
3474
|
+
this.isEventCancel = eventArgs.cancel;
|
|
3474
3475
|
if (!isNullOrUndefined(this.popupObj) &&
|
|
3475
3476
|
!isNullOrUndefined(this.popupObj.element.querySelector('.e-fixed-head'))) {
|
|
3476
3477
|
const fixedHeader = this.popupObj.element.querySelector('.e-fixed-head');
|
|
@@ -6733,8 +6734,7 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
6733
6734
|
setValue('selectedNodes', [], this.treeObj);
|
|
6734
6735
|
this.hiddenElement.innerHTML = '';
|
|
6735
6736
|
if (this.showCheckBox) {
|
|
6736
|
-
this.treeObj.
|
|
6737
|
-
this.treeObj.dataBind();
|
|
6737
|
+
this.treeObj.uncheckAll();
|
|
6738
6738
|
this.setMultiSelect();
|
|
6739
6739
|
this.clearCheckAll();
|
|
6740
6740
|
}
|
|
@@ -12658,6 +12658,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
12658
12658
|
render() {
|
|
12659
12659
|
this.setDynValue = this.initStatus = false;
|
|
12660
12660
|
this.isSelectAll = false;
|
|
12661
|
+
this.selectAllEventEle = [];
|
|
12661
12662
|
this.searchWrapper = this.createElement('span', { className: SEARCHBOX_WRAPPER + ' ' + ((this.mode === 'Box') ? BOX_ELEMENT : '') });
|
|
12662
12663
|
this.viewWrapper = this.createElement('span', { className: DELIMITER_VIEW + ' ' + DELIMITER_WRAPPER, styles: 'display:none;' });
|
|
12663
12664
|
this.overAllClear = this.createElement('span', {
|