tap closes the text field