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
{{ message }}
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
Here's a screenshot of the error in Chrome's developer tools:
To reproduce, just open the tagging demo, focus on any input field, make sure at least one option is highlighted in the dropdown list and use the up arrow key until the highlight goes through the top of the dropdown. I validated this against v0.9.6 and master. Note that there is no problem if you used the down arrow key to try and go through the bottom of the dropdown. The highlight stays stuck on the last item.
Thanks for looking into this and keep up the great work!
The text was updated successfully, but these errors were encountered:
JeromeLam
changed the title
JS error when using up arrow to highlight the option before the first in the list.
JS tagging error when using up arrow to highlight the option before the first in the list.
Feb 2, 2015
I can't seem to figure out why the condition ctrl.search.length === 0 && ctrl.tagging.isActivated was added for KEY.UP in #63. If I haven't typed anything in $select.search, this allows activeIndex to become negative, leading to the dropdown highlight disappearing.
If anyone has any insight, please provide some feedback. I can then create a PR to rectify this. Thanks!
Thanks @JeromeLam this is related to a condition where tagging-label="false" suppresses the value in the dropdown so that you can do "free tagging" but have it feel more like "free search", omitting the My Tag (new) bit. This is how I'm using the directive in a combo / additive filter context. Index tracking is affected differently between this and the other iteration where the dropdown list includes the new value. If you submit a PR (again, would be awesome), make sure you test with tagging-label="{whatever}" but also tagging-label="false"
Here's a screenshot of the error in Chrome's developer tools:

To reproduce, just open the tagging demo, focus on any input field, make sure at least one option is highlighted in the dropdown list and use the up arrow key until the highlight goes through the top of the dropdown. I validated this against v0.9.6 and master. Note that there is no problem if you used the down arrow key to try and go through the bottom of the dropdown. The highlight stays stuck on the last item.
Thanks for looking into this and keep up the great work!
The text was updated successfully, but these errors were encountered: