Skip to content

Commit 6aaed8a

Browse files
authored
Merge pull request #3619 from webcompat/issue/3618/1
Fix #3618 - Fix unset submit_type
2 parents cc07624 + 58b1729 commit 6aaed8a

File tree

1 file changed

+1
-1
lines changed
  • webcompat/static/js/lib/wizard/steps

1 file changed

+1
-1
lines changed

webcompat/static/js/lib/wizard/steps/submit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const onFormSubmit = (event) => {
5555
// about which <button> was clicked (since one wasn't clicked).
5656
// So we send that with the form data via a hidden input.
5757
const saveSubmitType = (event) => {
58-
submitTypeField.val(event.target.name);
58+
submitTypeField.val(event.currentTarget.name);
5959
};
6060

6161
submitButtons.on("click", saveSubmitType);

0 commit comments

Comments
 (0)