@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.
@@ -1652,7 +1652,7 @@ let DropDownList = class DropDownList extends DropDownBase {
1652
1652
  }
1653
1653
  else {
1654
1654
  if (this.allowFiltering && this.getModuleName() !== 'autocomplete'
1655
- && !isNullOrUndefined(this.actionCompleteData.ulElement) && !isNullOrUndefined(this.actionCompleteData.list)) {
1655
+ && !isNullOrUndefined(this.actionCompleteData.ulElement) && !isNullOrUndefined(this.actionCompleteData.list) && this.actionCompleteData.list.length > 0) {
1656
1656
  this.onActionComplete(this.actionCompleteData.ulElement.cloneNode(true), this.actionCompleteData.list);
1657
1657
  }
1658
1658
  this.resetFocusElement();
@@ -2389,6 +2389,9 @@ let DropDownList = class DropDownList extends DropDownBase {
2389
2389
  }
2390
2390
  selectEventCallback(li, e, preventSelect, selectedData, value) {
2391
2391
  this.previousItemData = (!isNullOrUndefined(this.itemData)) ? this.itemData : null;
2392
+ if (this.itemData != selectedData) {
2393
+ this.previousValue = (!isNullOrUndefined(this.itemData)) ? typeof this.itemData == "object" ? this.checkFieldValue(this.itemData, this.fields.value.split('.')) : this.itemData : null;
2394
+ }
2392
2395
  this.item = li;
2393
2396
  this.itemData = selectedData;
2394
2397
  const focusedItem = this.list.querySelector('.' + dropDownBaseClasses.focus);
@@ -11861,7 +11864,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
11861
11864
  overAllContainer = this.componentWrapper.offsetWidth -
11862
11865
  parseInt(window.getComputedStyle(this.componentWrapper).paddingLeft, 10) -
11863
11866
  parseInt(window.getComputedStyle(this.componentWrapper).paddingRight, 10);
11864
- if ((wrapperleng + downIconWidth + this.clearIconWidth) > overAllContainer) {
11867
+ if ((wrapperleng + downIconWidth + this.clearIconWidth) >= overAllContainer) {
11865
11868
  if (tempData !== undefined && tempData !== '') {
11866
11869
  temp = tempData;
11867
11870
  index = tempIndex + 1;
@@ -11870,7 +11873,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
11870
11873
  remaining = this.value.length - index;
11871
11874
  wrapperleng = this.viewWrapper.offsetWidth +
11872
11875
  parseInt(window.getComputedStyle(this.viewWrapper).paddingRight, 10);
11873
- while (((wrapperleng + remainSize + downIconWidth + this.clearIconWidth) > overAllContainer) && wrapperleng !== 0
11876
+ while (((wrapperleng + remainSize + downIconWidth + this.clearIconWidth) >= overAllContainer) && wrapperleng !== 0
11874
11877
  && this.viewWrapper.innerHTML !== '') {
11875
11878
  const textArr = [];
11876
11879
  this.viewWrapper.innerHTML = textArr.join(this.delimiterChar);
@@ -11880,7 +11883,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
11880
11883
  }
11881
11884
  break;
11882
11885
  }
11883
- else if ((wrapperleng + remainSize + downIconWidth + this.clearIconWidth) <= overAllContainer) {
11886
+ else if ((wrapperleng + remainSize + downIconWidth + this.clearIconWidth) < overAllContainer) {
11884
11887
  tempData = data;
11885
11888
  tempIndex = index;
11886
11889
  }
@@ -12073,6 +12076,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
12073
12076
  else {
12074
12077
  this.updateValue(event, li, state);
12075
12078
  }
12079
+ this.addValidInputClass();
12076
12080
  }
12077
12081
  updateValue(event, li, state) {
12078
12082
  const length = li.length;