Collapse the menu when the user types something in the search field, so that he can see the results below