Whenever you open up the Color & Avatar menu for a space and click into the search box it automatically closes the popup box.
Despite the fact that the search box is focused by default—such that a user can type in their query—it likely shouldn't collapse automatically upon clicking into it.