From 0da490675cdc1d1ce0b6644c3f4ad14023d53238 Mon Sep 17 00:00:00 2001 From: Kieran Date: Mon, 23 May 2022 23:48:30 +0100 Subject: [PATCH] Core: fix deprecated jquery .submit() event shorthand (#2430) * Core: fix deprecated jquery .submit() event shorthand * Core: jscs --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index 5f4d362b5..088be16d7 100644 --- a/src/core.js +++ b/src/core.js @@ -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()`