@syncfusion/ej2-dropdowns 20.4.49 → 20.4.50

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.
@@ -1701,7 +1701,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
1701
1701
  }
1702
1702
  else {
1703
1703
  if (this.allowFiltering && this.getModuleName() !== 'autocomplete'
1704
- && !isNullOrUndefined(this.actionCompleteData.ulElement) && !isNullOrUndefined(this.actionCompleteData.list)) {
1704
+ && !isNullOrUndefined(this.actionCompleteData.ulElement) && !isNullOrUndefined(this.actionCompleteData.list) && this.actionCompleteData.list.length > 0) {
1705
1705
  this.onActionComplete(this.actionCompleteData.ulElement.cloneNode(true), this.actionCompleteData.list);
1706
1706
  }
1707
1707
  this.resetFocusElement();
@@ -2441,6 +2441,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
2441
2441
  };
2442
2442
  DropDownList.prototype.selectEventCallback = function (li, e, preventSelect, selectedData, value) {
2443
2443
  this.previousItemData = (!isNullOrUndefined(this.itemData)) ? this.itemData : null;
2444
+ if (this.itemData != selectedData) {
2445
+ this.previousValue = (!isNullOrUndefined(this.itemData)) ? typeof this.itemData == "object" ? this.checkFieldValue(this.itemData, this.fields.value.split('.')) : this.itemData : null;
2446
+ }
2444
2447
  this.item = li;
2445
2448
  this.itemData = selectedData;
2446
2449
  var focusedItem = this.list.querySelector('.' + dropDownBaseClasses.focus);
@@ -12031,7 +12034,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
12031
12034
  overAllContainer = this.componentWrapper.offsetWidth -
12032
12035
  parseInt(window.getComputedStyle(this.componentWrapper).paddingLeft, 10) -
12033
12036
  parseInt(window.getComputedStyle(this.componentWrapper).paddingRight, 10);
12034
- if ((wrapperleng + downIconWidth + this.clearIconWidth) > overAllContainer) {
12037
+ if ((wrapperleng + downIconWidth + this.clearIconWidth) >= overAllContainer) {
12035
12038
  if (tempData !== undefined && tempData !== '') {
12036
12039
  temp = tempData;
12037
12040
  index = tempIndex + 1;
@@ -12040,7 +12043,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
12040
12043
  remaining = this.value.length - index;
12041
12044
  wrapperleng = this.viewWrapper.offsetWidth +
12042
12045
  parseInt(window.getComputedStyle(this.viewWrapper).paddingRight, 10);
12043
- while (((wrapperleng + remainSize + downIconWidth + this.clearIconWidth) > overAllContainer) && wrapperleng !== 0
12046
+ while (((wrapperleng + remainSize + downIconWidth + this.clearIconWidth) >= overAllContainer) && wrapperleng !== 0
12044
12047
  && this.viewWrapper.innerHTML !== '') {
12045
12048
  var textArr = [];
12046
12049
  this.viewWrapper.innerHTML = textArr.join(this.delimiterChar);
@@ -12050,7 +12053,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
12050
12053
  }
12051
12054
  break;
12052
12055
  }
12053
- else if ((wrapperleng + remainSize + downIconWidth + this.clearIconWidth) <= overAllContainer) {
12056
+ else if ((wrapperleng + remainSize + downIconWidth + this.clearIconWidth) < overAllContainer) {
12054
12057
  tempData = data;
12055
12058
  tempIndex = index;
12056
12059
  }
@@ -12243,6 +12246,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
12243
12246
  else {
12244
12247
  this.updateValue(event, li, state);
12245
12248
  }
12249
+ this.addValidInputClass();
12246
12250
  };
12247
12251
  MultiSelect.prototype.updateValue = function (event, li, state) {
12248
12252
  var _this = this;