Skip to content

Auto-suggest select boxes collapse on mouseUp instead of mouseDown

Summary

There is a usability problem with auto-suggest select boxes (for Assignee, Labels, etc.). They collapse if mouseUp occurs outside the box area. That is frustrating because it's 1) not predictable and 2) easily done. Instead, select boxes should collapse if mouseDown occurs outside the box area.

Steps to reproduce

  • Go to any issue, or click to create a new issue
  • Click on any auto-suggest select box (Assignee, Labels, etc)
  • Type some junk in the auto-suggest text field (this step isn't essential, only for illustration)
  • Click to select the text you just typed, but release the mouse click somewhere outside the select box.
  • Watch the select box collapse ("disappear") so you have to click to re-open it and select text again.

Example Project

The gitlab project.

What is the current bug behavior?

Select boxes collapse when mouseUp occurs outside the box area.

What is the expected correct behavior?

Select boxes collapse when mouseDown occurs outside the box area.

Relevant logs and/or screenshots

Disappearing_select_boxes

Output of checks

This bug happens on GitLab.com.