igniteui-angular
igniteui-angular copied to clipboard
[simple-combo] item is cleared and deselected on blur when having partial match
Description
If we have items with partial matches, for example, 'Apple' and 'Apples' the input field is cleared, and the item is deselected when opening the combo and clicking outside of it. This happens if the item with shorter text ('Apple') is listed after the item that contains 'Apple' in it, i.e. 'Apples'.
- igniteui-angular version: 14.0.x
- browser: all
Steps to reproduce
- Open this demo.
- Open the second combo and select 'Apple'.
- Open the combo again and click outside of it so it loses focus.
Result
The input field is cleared and the item is deselected.
Expected result
The input field should not be cleared and the item should remain selected.
Attachments
This could be observed in the below attachment:
