Dismiss the unpinned sidebar when dropdowns are opened
Whenever the sidebar is unpinned, clicking on elements on the main pane dismisses the sidebar.
This is not the case for dropdowns in the current version of GitLab. We should change it so that the unpinned sidebar dismisses when the dropdowns are opened.