Issuable Sidebar Collapses After Interaction
Summary
Opening the issue sidebar by clicking the action icons causes normal sidebar interaction to collapse the sidebar.
Steps to reproduce
- Open an issue
- Open the sidebar by clicking on an action icon (like label)
- Click the edit button on a different section (like milestone)
Expected behavior
The sidebar should stay open.
The sidebar should collapse and no inner sections should open.
Actual behavior
The sidebar collapses with some of the sidebar content in an active state.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Possible fixes
There is probably some state that is being flipped when the open button is clicked, but is not flipped when the other icons open the sidebar.
This can probably be fixed by centralizing sidebar toggling logic that opens the sidebar into a single method that can be reused.