igniteui-angular
igniteui-angular copied to clipboard
IgxSimpleCombo: model should only be a valid value
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
- Open https://www.infragistics.com/products/ignite-ui-angular/angular/components/simple-combo#two-way-binding
- 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.