[#1581] Close input field for authenticityToken
(cherry picked from commit 9bfa493ddb545be518e580e6ac9537ba31c9d9db)