Skip to content

Commit 97c03f5

Browse files
committed
call form submit if originalSubmitHandler not present
1 parent 65a2c17 commit 97c03f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/web/mage/validation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1912,9 +1912,9 @@
19121912
element.element.attr('name', element.name);
19131913
element.element.removeAttr('orig-name');
19141914
});
1915-
1915+
19161916
/* Call the originalSubmitHandler if it's a function */
1917-
typeof originalSubmitHandler === 'function' && originalSubmitHandler(form);
1917+
typeof originalSubmitHandler === 'function' ? originalSubmitHandler(form) : form.submit();
19181918
};
19191919
},
19201920

0 commit comments

Comments
 (0)