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.
- 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
|
@@ -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
|
-
|
|
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.
|
|
37870
|
-
if (filtered === undefined || filtered === null || this.
|
|
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
|
-
|
|
37879
|
-
|
|
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;
|