Current behavior
When I type in the search box the results appear under it but they do not go away unless you press the ESC key.
Minimal example
codesandbox.io/s/peaceful-chebyshev-1g1oj
Expected behavior
I expect the results to go away whenever I click outside of the search box and to re-appear when I click back inside of it. I also expect the results to go away if I remove what was typed into the search box but that just makes all possible results appear. The only way to currently make the results go away is to press ESC which I doubt many of my visitors will know about.