igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

IgxSimpleCombo: model should only be a valid value

Open Timmeeeey opened this issue 10 months ago • 0 comments

Description

When using a IgxSimpleCombo then the model should only be set to valid values. But when you enter a value in the input to filter the dropdown values then the model is set to the filter string although it's not a valid selection. This can be a problem when you subscribe to valueChanges of the FormControl and you expect a valid id but you get the search string.

  • igniteui-angular version: 17.1.7

Steps to reproduce

  1. Open https://www.infragistics.com/products/ignite-ui-angular/angular/components/simple-combo#two-way-binding
  2. Enter something in the input.

Result

The model is set to the input string although the model should only be a valid id.

Expected result

The model should only change if the selection is changed.

Attachments

2024-04-04_10h15_56

Timmeeeey avatar Apr 04 '24 08:04 Timmeeeey