Skip to content

Commit

Permalink
Issue #3618 - Fix unset submit_type
Browse files Browse the repository at this point in the history
  • Loading branch information
ksy36 committed Sep 10, 2021
1 parent 1b72f8e commit 58b1729
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

1 comment on commit 58b1729

@karlcow
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏 Very cool.

Please sign in to comment.