@syncfusion/ej2-dropdowns 32.1.25 → 32.2.3

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.
@@ -16959,7 +16959,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
16959
16959
  this.unwireListEvents();
16960
16960
  this.wireListEvents();
16961
16961
  }
16962
- initialValueUpdate(listItems, isInitialVirtualData) {
16962
+ initialValueUpdate(listItems, isInitialVirtualData, isInitialRender) {
16963
16963
  if (this.list) {
16964
16964
  let text;
16965
16965
  let element;
@@ -16968,6 +16968,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
16968
16968
  this.chipCollectionWrapper.innerHTML = '';
16969
16969
  }
16970
16970
  this.removeListSelection();
16971
+ const formElement = closest(this.inputElement, 'form');
16971
16972
  if (!isNullOrUndefined(this.value)) {
16972
16973
  for (let index = 0; !isNullOrUndefined(this.value[index]); index++) {
16973
16974
  value = this.allowObjectBinding ?
@@ -17012,7 +17013,8 @@ let MultiSelect = class MultiSelect extends DropDownBase {
17012
17013
  }
17013
17014
  else if ((isNullOrUndefined(text) && !this.allowCustomValue) &&
17014
17015
  ((!(this.dataSource instanceof DataManager)) ||
17015
- (this.dataSource instanceof DataManager && isInitialVirtualData))) {
17016
+ (this.dataSource instanceof DataManager && isInitialVirtualData)) && (!this.isAngular || !isInitialRender ||
17017
+ (isNullOrUndefined(formElement) && listItems && listItems.length > 0))) {
17016
17018
  this.value.splice(index, 1);
17017
17019
  index -= 1;
17018
17020
  }
@@ -19105,7 +19107,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
19105
19107
  this.viewPortInfo.startIndex = this.virtualItemStartIndex = 0;
19106
19108
  this.viewPortInfo.endIndex = this.virtualItemEndIndex = this.viewPortInfo.startIndex > 0 ?
19107
19109
  this.viewPortInfo.endIndex : this.itemCount;
19108
- this.checkInitialValue();
19110
+ this.checkInitialValue(true);
19109
19111
  if (this.element.hasAttribute('data-val')) {
19110
19112
  this.element.setAttribute('data-val', 'false');
19111
19113
  }
@@ -19284,7 +19286,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
19284
19286
  this.value = data.length > 0 ? data : null;
19285
19287
  }
19286
19288
  }
19287
- checkInitialValue() {
19289
+ checkInitialValue(isInitialRender) {
19288
19290
  if (this.fields.disabled) {
19289
19291
  this.removeDisabledItemsValue(this.value);
19290
19292
  }
@@ -19370,7 +19372,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
19370
19372
  }
19371
19373
  }
19372
19374
  if (!(this.dataSource instanceof DataManager)) {
19373
- this.initialValueUpdate(listItems, true);
19375
+ this.initialValueUpdate(listItems, true, isInitialRender);
19374
19376
  this.initialUpdate();
19375
19377
  }
19376
19378
  else {