Skip to content

Commit 388d31d

Browse files
committed
invalid form key issue resolved. Call the originalSubmitHandler if it's a function, or don't do anything
1 parent 38b9709 commit 388d31d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/mage/validation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1950,7 +1950,7 @@
19501950
element.element.removeAttr('orig-name');
19511951
});
19521952
/* Call the originalSubmitHandler if it's a function */
1953-
typeof originalSubmitHandler === 'function' ? originalSubmitHandler(form) : form.submit();
1953+
typeof originalSubmitHandler === 'function' ? originalSubmitHandler(form) : void(0);
19541954
};
19551955
},
19561956

0 commit comments

Comments
 (0)