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.
- package/esm2020/lib/combo/combo.common.mjs +3 -2
- package/esm2020/lib/simple-combo/simple-combo.component.mjs +6 -8
- package/fesm2015/igniteui-angular.mjs +8 -8
- package/fesm2015/igniteui-angular.mjs.map +1 -1
- package/fesm2020/igniteui-angular.mjs +7 -8
- package/fesm2020/igniteui-angular.mjs.map +1 -1
- package/lib/simple-combo/simple-combo.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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.
|
|
38063
|
-
if (filtered === undefined || filtered === null || this.
|
|
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
|
-
|
|
38072
|
-
|
|
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;
|