Skip to content

Commit

Permalink
Core: fix deprecated jquery .submit() event shorthand (#2430)
Browse files Browse the repository at this point in the history
* Core: fix deprecated jquery .submit() event shorthand

* Core: jscs
  • Loading branch information
bytestream committed May 23, 2022
1 parent 1b79877 commit 0da4906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.js
Expand Up @@ -1113,7 +1113,7 @@ $.extend( $.validator, {
delete this.pending[ element.name ];
$( element ).removeClass( this.settings.pendingClass );
if ( valid && this.pendingRequest === 0 && this.formSubmitted && this.form() && this.pendingRequest === 0 ) {
$( this.currentForm ).submit();
$( this.currentForm ).trigger( "submit" );

// Remove the hidden input that was used as a replacement for the
// missing submit button. The hidden input is added by `handle()`
Expand Down

0 comments on commit 0da4906

Please sign in to comment.