igniteui-angular 12.3.38 → 12.3.39

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.
@@ -39781,8 +39781,10 @@
39781
39781
  _this.manageRequiredAsterisk();
39782
39782
  };
39783
39783
  _this.findMatch = function (element) {
39784
+ var _a;
39784
39785
  var value = _this.displayKey ? element[_this.displayKey] : element;
39785
- return (value === null || value === void 0 ? void 0 : value.toString().toLowerCase()) === _this.searchValue.trim().toLowerCase();
39786
+ var searchValue = _this.searchValue || ((_a = _this.comboInput) === null || _a === void 0 ? void 0 : _a.value);
39787
+ return (value === null || value === void 0 ? void 0 : value.toString().toLowerCase()) === searchValue.trim().toLowerCase();
39786
39788
  };
39787
39789
  return _this;
39788
39790
  }
@@ -41660,17 +41662,15 @@
41660
41662
  this.setSelection(newSelection);
41661
41663
  };
41662
41664
  IgxSimpleComboComponent.prototype.clearOnBlur = function () {
41663
- var filtered = this.filteredData.find(this.findAllMatches);
41664
- if (filtered === undefined || filtered === null || this.selectionService.size(this.id) === 0) {
41665
+ var filtered = this.filteredData.find(this.findMatch);
41666
+ if (filtered === undefined || filtered === null || this.getElementKey(filtered) !== this.selectedItem) {
41665
41667
  this.clearAndClose();
41666
41668
  return;
41667
41669
  }
41668
- if (this.isPartialMatch(filtered) || this.getElementVal(filtered) !== this._internalFilter) {
41669
- this.clearAndClose();
41670
- }
41671
41670
  };
41672
- IgxSimpleComboComponent.prototype.isPartialMatch = function (filtered) {
41673
- return !!this._internalFilter && this._internalFilter.length !== this.getElementVal(filtered).length;
41671
+ IgxSimpleComboComponent.prototype.getElementKey = function (element) {
41672
+ var elementVal = this.valueKey ? element[this.valueKey] : element;
41673
+ return elementVal;
41674
41674
  };
41675
41675
  IgxSimpleComboComponent.prototype.getElementVal = function (element) {
41676
41676
  var elementVal = this.displayKey ? element[this.displayKey] : element;