Label selection dropdown: First item stays selected
What does this MR do and why?
- Fixes the problem that after interacting with the labels dropdown the first item stays visually active.
- Fixes the problem that when using the arrow down/tab after a search the first item gets selected again which leads to a weird experience as the user expects the next element to get selected (2 in list). This MR fixes that behavior that it behaves like e.g. the assignee dropdown.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Enable
echo "Feature.enable(:visible_label_selection_on_metadata)" | rails c
- Visit http://gdk.test:3000/flightjs/Flight/-/issues/new
- Open the label selection dropdown
- Search for e.g. «a»
- Use arrow down/up or tab to navigate
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #420715 (closed), #417912 (closed)
Edited by Sascha Eggenberger