You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thank you for this autocomplete, it is really usefull.
But I have this issue: given I enter the input for the first time, when I press the arrow down key, then it jumps straight to the second item.
This issue happens because of this code in line 96: scope.currentIndex = scope.focusFirst ? 0 : null; and null is coerced 0 when scope.currentIndex++ for the first time.
Shouldn't it be initialised with -1 instead of null? Would be there any side effects of doing so?
The text was updated successfully, but these errors were encountered:
Hi,
First, thank you for this autocomplete, it is really usefull.
But I have this issue: given I enter the input for the first time, when I press the arrow down key, then it jumps straight to the second item.
This issue happens because of this code in line 96:
scope.currentIndex = scope.focusFirst ? 0 : null;
and null is coerced 0 whenscope.currentIndex++
for the first time.Shouldn't it be initialised with -1 instead of null? Would be there any side effects of doing so?
The text was updated successfully, but these errors were encountered: