igniteui-angular 12.3.42 → 12.3.44

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.
@@ -41685,7 +41685,7 @@
41685
41685
  argsSelection = Array.isArray(argsSelection) ? argsSelection : [argsSelection];
41686
41686
  this.selectionService.select_items(this.id, argsSelection, true);
41687
41687
  if (this._updateInput) {
41688
- this.comboInput.value = this._internalFilter = this._value = displayText !== args.displayText
41688
+ this.comboInput.value = this._internalFilter = this._value = this.searchValue = displayText !== args.displayText
41689
41689
  ? args.displayText
41690
41690
  : this.createDisplayText(argsSelection, [args.oldSelection]);
41691
41691
  }
@@ -41698,15 +41698,16 @@
41698
41698
  };
41699
41699
  IgxSimpleComboComponent.prototype.createDisplayText = function (newSelection, oldSelection) {
41700
41700
  var _this = this;
41701
- var _a;
41701
+ var _a, _b;
41702
41702
  if (this.isRemote) {
41703
41703
  return this.getRemoteSelection(newSelection, oldSelection);
41704
41704
  }
41705
- if (this.displayKey !== null && this.displayKey !== undefined
41705
+ if (this.displayKey !== null
41706
+ && this.displayKey !== undefined
41706
41707
  && newSelection.length > 0) {
41707
- return this.convertKeysToItems(newSelection).map(function (e) { return e[_this.displayKey]; })[0];
41708
+ return ((_a = this.convertKeysToItems(newSelection).filter(function (e) { return e; }).map(function (e) { return e[_this.displayKey]; })[0]) === null || _a === void 0 ? void 0 : _a.toString()) || '';
41708
41709
  }
41709
- return ((_a = newSelection[0]) === null || _a === void 0 ? void 0 : _a.toString()) || '';
41710
+ return ((_b = newSelection[0]) === null || _b === void 0 ? void 0 : _b.toString()) || '';
41710
41711
  };
41711
41712
  IgxSimpleComboComponent.prototype.clearSelection = function (ignoreFilter) {
41712
41713
  var newSelection = this.selectionService.get_empty();
@@ -45666,7 +45667,8 @@
45666
45667
  };
45667
45668
  /** @hidden @internal */
45668
45669
  IgxSelectComponent.prototype.selectItem = function (newSelection, event) {
45669
- var oldSelection = this.selectedItem;
45670
+ var _a;
45671
+ var oldSelection = (_a = this.selectedItem) !== null && _a !== void 0 ? _a : {};
45670
45672
  if (newSelection === null || newSelection.disabled || newSelection.isHeader) {
45671
45673
  return;
45672
45674
  }