Skip to content

Commit 6bc0949

Browse files
committed
fix(combo): Remove useless check for multiselection and use the textKey #324
1 parent 0537e44 commit 6bc0949

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

projects/igniteui-angular-wrappers/src/lib/igcombo/igcombo.component.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,8 @@ export class IgComboComponent extends IgControlBase<IgCombo> implements ControlV
4545
jQuery(this._el).on("input", function (evt) {
4646
// D.K. #324 Do not override the model value if the text value is representing the same model value
4747
let item = jQuery(that._el).data("igCombo").itemsFromValue(that._model.model);
48-
if (that.options.multiSelection && that.options.multiSelection.enabled ||
49-
!item ||
50-
item.data && item.data.text !== evt.target.value) {
48+
if (!item ||
49+
item.data && item.data[that.options.textKey] !== evt.target.value) {
5150
that._model.viewToModelUpdate(evt.target.value);
5251
}
5352
});

0 commit comments

Comments
 (0)