From d9c508e81a8b73ddd6449a1dd617102dc6bb5f97 Mon Sep 17 00:00:00 2001 From: David Upton Date: Mon, 14 Mar 2022 14:52:53 -0400 Subject: [PATCH] Fixes pasted email address Fixes issue #2382 in boston.gov-d8 --- scripts/components/contact.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/components/contact.js b/scripts/components/contact.js index 09c17f8d..9935ac89 100644 --- a/scripts/components/contact.js +++ b/scripts/components/contact.js @@ -41,12 +41,12 @@ var BostonContact = (function () { form.addEventListener('submit', handleFormSubmit); // Set the hidden fields - setBrowser(ev.target); - setURL(ev.target); - setToAddress(ev.target); - setBodyMessage(ev.target); - setSubject(ev.target); - setToken(ev.target); + setBrowser(ev.currentTarget); + setURL(ev.currentTarget); + setToAddress(ev.currentTarget); + setBodyMessage(ev.currentTarget); + setSubject(ev.currentTarget); + setToken(ev.currentTarget); } }