Make search form behave sanely on iOS and after submit