Fix issue with search dropdown not working on menu click