Label selector chooses last item rather than selected item
Summary
When selecting a label on the Issue#show page, the last item is selected rather than the first in the list, when pressing Return
Steps to Reproduce
- Open a new issue, with no labels
- Navigate to your new issue
- Edit the Labels
- Type a term that will result in a number of results
- Hit return to select the label
Expected Results
- The first and highlighted label would be selected
Actual Results
- The final label is selected
Additional details
- Project exhibiting the problem: https://gitlab.com/issue-reproduce/label-filter-811/issues/1
- Recording: http://recordit.co/PwfKEPejgM