Label filter selects the wrong label when hitting enter

Description

Label filter selects the wrong label when hitting enter

Steps to reproduce

  1. Open an issue on https://gitlab.com/gitlab-org/gitlab-ce/issues
  2. On the sidebar look open the label filter to search for api
  3. The api label is the first one -> Press enter

Observed behavior

  • ~"Accepting Merge Requests" label gets ticked

Expected behavior

  • api label gets selected

/cc @iamphill @jschatz1