adding alternative code to hide the search button when focussing away, without preventing the form from submitting