igniteui-angular 13.2.15 → 13.2.16

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.
@@ -36012,7 +36012,8 @@ class IgxComboBaseDirective extends DisplayDensityBase {
36012
36012
  };
36013
36013
  this.findMatch = (element) => {
36014
36014
  const value = this.displayKey ? element[this.displayKey] : element;
36015
- return value?.toString().toLowerCase() === this.searchValue.trim().toLowerCase();
36015
+ const searchValue = this.searchValue || this.comboInput?.value;
36016
+ return value?.toString().toLowerCase() === searchValue.trim().toLowerCase();
36016
36017
  };
36017
36018
  }
36018
36019
  /**
@@ -37866,17 +37867,15 @@ class IgxSimpleComboComponent extends IgxComboBaseDirective {
37866
37867
  this.setSelection(newSelection);
37867
37868
  }
37868
37869
  clearOnBlur() {
37869
- const filtered = this.filteredData.find(this.findAllMatches);
37870
- if (filtered === undefined || filtered === null || this.selectionService.size(this.id) === 0) {
37870
+ const filtered = this.filteredData.find(this.findMatch);
37871
+ if (filtered === undefined || filtered === null || this.getElementKey(filtered) !== this.selectedItem) {
37871
37872
  this.clearAndClose();
37872
37873
  return;
37873
37874
  }
37874
- if (this.isPartialMatch(filtered) || this.getElementVal(filtered) !== this._internalFilter) {
37875
- this.clearAndClose();
37876
- }
37877
37875
  }
37878
- isPartialMatch(filtered) {
37879
- return !!this._internalFilter && this._internalFilter.length !== this.getElementVal(filtered).length;
37876
+ getElementKey(element) {
37877
+ const elementVal = this.valueKey ? element[this.valueKey] : element;
37878
+ return elementVal;
37880
37879
  }
37881
37880
  getElementVal(element) {
37882
37881
  const elementVal = this.displayKey ? element[this.displayKey] : element;