Search autocompletion cannot handle right clicks

Right-clicking a suggested search result (e.g. to open it in a new tab) causes the modal to get stuck. Neither clicking into the search box nor clicking outside the modal will make it disappear.

Recovery: Focus the search box and hit esc. Anything else (focusing the search field and clicking outside, focusing the search field and changing the search term, then clicking outside) won’t work.

Possibly related: command-clicking a search result should not hide the list