igniteui-angular 13.2.20 → 13.2.21

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.
@@ -37889,7 +37889,7 @@ class IgxSimpleComboComponent extends IgxComboBaseDirective {
37889
37889
  argsSelection = Array.isArray(argsSelection) ? argsSelection : [argsSelection];
37890
37890
  this.selectionService.select_items(this.id, argsSelection, true);
37891
37891
  if (this._updateInput) {
37892
- this.comboInput.value = this._internalFilter = this._value = displayText !== args.displayText
37892
+ this.comboInput.value = this._internalFilter = this._value = this.searchValue = displayText !== args.displayText
37893
37893
  ? args.displayText
37894
37894
  : this.createDisplayText(argsSelection, [args.oldSelection]);
37895
37895
  }
@@ -37906,7 +37906,7 @@ class IgxSimpleComboComponent extends IgxComboBaseDirective {
37906
37906
  }
37907
37907
  if (this.displayKey !== null && this.displayKey !== undefined
37908
37908
  && newSelection.length > 0) {
37909
- return this.convertKeysToItems(newSelection).map(e => e[this.displayKey])[0];
37909
+ return this.convertKeysToItems(newSelection).map(e => e[this.displayKey])[0]?.toString() || '';
37910
37910
  }
37911
37911
  return newSelection[0]?.toString() || '';
37912
37912
  }
@@ -40550,7 +40550,7 @@ class IgxSelectComponent extends IgxDropDownComponent {
40550
40550
  }
40551
40551
  /** @hidden @internal */
40552
40552
  selectItem(newSelection, event) {
40553
- const oldSelection = this.selectedItem;
40553
+ const oldSelection = this.selectedItem ?? {};
40554
40554
  if (newSelection === null || newSelection.disabled || newSelection.isHeader) {
40555
40555
  return;
40556
40556
  }