igniteui-angular 14.1.0-rc.0 → 14.1.0

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.
@@ -36208,7 +36208,8 @@ class IgxComboBaseDirective extends DisplayDensityBase {
36208
36208
  };
36209
36209
  this.findMatch = (element) => {
36210
36210
  const value = this.displayKey ? element[this.displayKey] : element;
36211
- return value?.toString().toLowerCase() === this.searchValue.trim().toLowerCase();
36211
+ const searchValue = this.searchValue || this.comboInput?.value;
36212
+ return value?.toString().toLowerCase() === searchValue.trim().toLowerCase();
36212
36213
  };
36213
36214
  }
36214
36215
  /**
@@ -38059,17 +38060,15 @@ class IgxSimpleComboComponent extends IgxComboBaseDirective {
38059
38060
  this.setSelection(newSelection);
38060
38061
  }
38061
38062
  clearOnBlur() {
38062
- const filtered = this.filteredData.find(this.findAllMatches);
38063
- if (filtered === undefined || filtered === null || this.selectionService.size(this.id) === 0) {
38063
+ const filtered = this.filteredData.find(this.findMatch);
38064
+ if (filtered === undefined || filtered === null || this.getElementKey(filtered) !== this.selectedItem) {
38064
38065
  this.clearAndClose();
38065
38066
  return;
38066
38067
  }
38067
- if (this.isPartialMatch(filtered) || this.getElementVal(filtered) !== this._internalFilter) {
38068
- this.clearAndClose();
38069
- }
38070
38068
  }
38071
- isPartialMatch(filtered) {
38072
- return !!this._internalFilter && this._internalFilter.length !== this.getElementVal(filtered).length;
38069
+ getElementKey(element) {
38070
+ const elementVal = this.valueKey ? element[this.valueKey] : element;
38071
+ return elementVal;
38073
38072
  }
38074
38073
  getElementVal(element) {
38075
38074
  const elementVal = this.displayKey ? element[this.displayKey] : element;