Unwanted navigation when searching in labels popover

Summary

When I open the issues popover in issue sidebar, I almost always want to search for a label and start typing right away. The input is not focused until the list of labels is fetched from the server and therefore my keystrokes are not captured by the input and they are captured by the document instead. This lead to serious UX issues because of the global shortkeys like i for creating a new issue. For example, I will be navigated to new issue page all of a sudden while I was changing labels of some issue!

Steps to reproduce

Open any issue, click on Edits next to Labels and try searching labels immediately. For example type "i".

What is the current bug behavior?

keystrokes are not immediately captured by the search input

What is the expected correct behavior?

Search input should get focused and start accepting keystrokes even when labels are loading.