Skip to content

Commit 58b1729

Browse files
committed
Issue #3618 - Fix unset submit_type
1 parent 1b72f8e commit 58b1729

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)