Hide searchbar expandable

Hi, I have a searchbar expandable with custom search. I need to hide it for a while (without disabling it, because I need to preserve the search text and prevent search event raising) to show the buttons in navbar. In md style I made it with searchBar.$el.hide(), but in ios when I hide the searchBar the buttons and title on navbar are not showing. Which is the right way to do this?
Thanks in advance

You also need to remove with-searchbar-expandable-enabled class from Navbar