Skip to content

Commit

Permalink
component: Chrome autofill bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
rpiorkowski committed Oct 25, 2018
1 parent e83a240 commit 7ad850e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core.js
Expand Up @@ -58,7 +58,7 @@ $.extend( $.fn, {
// - A user defined a `submitHandler`
// - There was a pending request due to `remote` method and `stopRequest()`
// was called to submit the form in case it's valid
if ( validator.submitButton && ( validator.settings.submitHandler || validator.formSubmitted ) ) {
if ( validator.submitButton && ( validator.settings.submitHandler || validator.formSubmitted ) && !validator.settings.disableSubmitSec ) {
hidden = $( "<input type='hidden'/>" )
.attr( "name", validator.submitButton.name )
.val( $( validator.submitButton ).val() )
Expand Down Expand Up @@ -261,6 +261,7 @@ $.extend( $.validator, {
validClass: "valid",
errorElement: "label",
focusCleanup: false,
disableSubmitSec: false,
focusInvalid: true,
errorContainer: $( [] ),
errorLabelContainer: $( [] ),
Expand Down

0 comments on commit 7ad850e

Please sign in to comment.