Skip to content

Commit

Permalink
Merge pull request #3619 from webcompat/issue/3618/1
Browse files Browse the repository at this point in the history
Fix #3618 - Fix unset submit_type
  • Loading branch information
karlcow authored Sep 13, 2021
2 parents cc07624 + 58b1729 commit 6aaed8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webcompat/static/js/lib/wizard/steps/submit.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const onFormSubmit = (event) => {
// about which <button> was clicked (since one wasn't clicked).
// So we send that with the form data via a hidden input.
const saveSubmitType = (event) => {
submitTypeField.val(event.target.name);
submitTypeField.val(event.currentTarget.name);
};

submitButtons.on("click", saveSubmitType);
Expand Down

0 comments on commit 6aaed8a

Please sign in to comment.