[Bug] highlightedSectionIndex does not reset to null when highlightFirstSuggestion changes from true to false
DoloMike opened this issue · comments
Michael Roberts commented
highlightedSectionIndex
does not reset to null when highlightFirstSuggestion
changes from true
to false
stackblitz example for reproducing the issue
Steps to reproduce the issue (and observed behavior):
- Focus on the input field (at this point
highlightFirstSuggestion === false
and nothing is highlighted). - Type
c
, and wait for suggestions to appear (at this pointhighlightFirstSuggestion === true
and the first suggestion is highlighted). - Press backspace so the input is empty (at this point
highlightFirstSuggestion === false
and the first suggestion remains highlighted).
Expected behaviour:
When highlightFirstSuggestion === false
nothing should be highlighted. highlightedSectionIndex
should be set back to null.