@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.
@@ -95,7 +95,7 @@ function Search(inputVal, items, searchType, ignoreCase, dataSource, fields, typ
95
95
  var fieldValue_1 = fields.text.split('.');
96
96
  dataSource.filter(function (data) {
97
97
  Array.prototype.slice.call(fieldValue_1).forEach(function (value) {
98
- if (type === 'object' && checkField_1.textContent.toString().indexOf(data[value]) !== -1 && checkField_1.getAttribute('data-value') === data[fields.value] || type === 'string' && checkField_1.textContent.toString().indexOf(data) !== -1) {
98
+ if (type === 'object' && checkField_1.textContent.toString().indexOf(data[value]) !== -1 && checkField_1.getAttribute('data-value') === data[fields.value].toString() || type === 'string' && checkField_1.textContent.toString().indexOf(data) !== -1) {
99
99
  filterValue = type === 'object' ? data[value] : data;
100
100
  }
101
101
  });
@@ -3301,6 +3301,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
3301
3301
  }
3302
3302
  },
3303
3303
  open: function () {
3304
+ EventHandler.remove(document, 'mousedown', _this.onDocumentClick);
3304
3305
  EventHandler.add(document, 'mousedown', _this.onDocumentClick, _this);
3305
3306
  _this.isPopupOpen = true;
3306
3307
  var actionList = _this.actionCompleteData && _this.actionCompleteData.ulElement &&
@@ -3480,10 +3481,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
3480
3481
  DropDownList.prototype.closePopup = function (delay, e) {
3481
3482
  var _this = this;
3482
3483
  this.isTyped = false;
3483
- if (!(this.popupObj && document.body.contains(this.popupObj.element) && this.beforePopupOpen)) {
3484
+ if (!(this.popupObj && document.body.contains(this.popupObj.element) && (this.beforePopupOpen || this.isEventCancel))) {
3484
3485
  return;
3485
3486
  }
3486
- EventHandler.remove(document, 'mousedown', this.onDocumentClick);
3487
3487
  this.isActive = false;
3488
3488
  this.filterInputObj = null;
3489
3489
  this.isDropDownClick = false;
@@ -3533,6 +3533,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
3533
3533
  var popupInstance = this.popupObj;
3534
3534
  var eventArgs = { popup: popupInstance, cancel: false, animation: animModel, event: e || null };
3535
3535
  this.trigger('close', eventArgs, function (eventArgs) {
3536
+ _this.isEventCancel = eventArgs.cancel;
3536
3537
  if (!isNullOrUndefined(_this.popupObj) &&
3537
3538
  !isNullOrUndefined(_this.popupObj.element.querySelector('.e-fixed-head'))) {
3538
3539
  var fixedHeader = _this.popupObj.element.querySelector('.e-fixed-head');
@@ -6838,8 +6839,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
6838
6839
  setValue('selectedNodes', [], this.treeObj);
6839
6840
  this.hiddenElement.innerHTML = '';
6840
6841
  if (this.showCheckBox) {
6841
- this.treeObj.checkedNodes = [];
6842
- this.treeObj.dataBind();
6842
+ this.treeObj.uncheckAll();
6843
6843
  this.setMultiSelect();
6844
6844
  this.clearCheckAll();
6845
6845
  }
@@ -12837,6 +12837,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
12837
12837
  MultiSelect.prototype.render = function () {
12838
12838
  this.setDynValue = this.initStatus = false;
12839
12839
  this.isSelectAll = false;
12840
+ this.selectAllEventEle = [];
12840
12841
  this.searchWrapper = this.createElement('span', { className: SEARCHBOX_WRAPPER + ' ' + ((this.mode === 'Box') ? BOX_ELEMENT : '') });
12841
12842
  this.viewWrapper = this.createElement('span', { className: DELIMITER_VIEW + ' ' + DELIMITER_WRAPPER, styles: 'display:none;' });
12842
12843
  this.overAllClear = this.createElement('span', {