Hide input field when press ESC in tags directive