Setting labels in issue board produces garbled results.
Summary
When editing the labels of more than one issue (say, issue A and issue B) in the issue board, the labels from issue A may be copied over to issue B.
Steps to reproduce
- Create to issues A and B in a project.
- Open the issue board so you see both issues.
- Select issue A, select the label edit field, select some labels.
- Leave the select field by pressing the Escape key. This is important, since not all methods to leave the field trigger this bug.
- Select issue B, try to set some other label.
- Result: The labels from A are also set for B. Note that in these screenshots, the labels of A were in sight, but of course they may also be somewhere down the list, invisible to the user.
Example Project
https://gitlab.com/quazgar/issue_board_test/-/boards
What is the current bug behavior?
The labels of the issue which is selected first are not reset when showing the label dropdown of any subsequent issue.
What is the expected correct behavior?
The labels selector's initial state should reflect the currently selected issue's state.
Relevant logs and/or screenshots
Screenshots: please see above.
Output of checks
This bug happens on GitLab.com, and also on our paid self-hosted instance (14.4.2-ee).
Possible fixes
Probably some state transitions are not properly triggered when leaving the dropdown menu or deselecting the first issue. I am pretty certain that I also experienced this problem when closing the dropdown menu with other methods that the Escape key, but I cannot reproduce them right now.