Skip to content

Commit cedae0e

Browse files
committed
fix(combo): Remove useless check for multiselection and use the textKey
1 parent e1138e6 commit cedae0e

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
@@ -58,9 +58,8 @@ export class IgComboComponent extends IgControlBase<IgCombo> implements ControlV
5858
jQuery(this._el).on('input', evt => {
5959
// D.K. #324 Do not override the model value if the text value is representing the same model value
6060
const item = jQuery(this._el).data('igCombo').itemsFromValue(this._model.model);
61-
if (this.options.multiSelection && this.options.multiSelection.enabled ||
62-
!item ||
63-
item.data && item.data.text !== evt.target.value) {
61+
if (!item ||
62+
item.data && item.data[this.options.textKey] !== evt.target.value) {
6463
this._model.viewToModelUpdate(evt.target.value);
6564
}
6665
});

0 commit comments

Comments
 (0)