Fix bug that causes mobile search menu to close when it is clicked.