Skip to content

Commit

Permalink
Merge pull request #106 from legalthings/Hidden_required_fields_preve…
Browse files Browse the repository at this point in the history
…nt_from_continue

Perform validator update before each validation
  • Loading branch information
svenstm authored Jun 18, 2018
2 parents ff00df0 + 57807bf commit 6b7f42f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/legalform-validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@

var $stepForm = $(self.el).find('.wizard-step.active form');
var validator = $stepForm.data('bs.validator');

validator.update();
validator.validate();

$stepForm.find(':not(.selectize-input)>:input:not(.btn)').each(function() {
Expand Down Expand Up @@ -323,6 +325,8 @@

$(elWizard).find('.wizard-step form').each(function(key, step) {
var validator = $(this).data('bs.validator');

validator.update();
validator.validate();

$(this).find(':not(.selectize-input)>:input:not(.btn)').each(function() {
Expand Down
2 changes: 2 additions & 0 deletions js/ractive-legalform.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,8 @@

var $stepForm = $(this);
var validator = $stepForm.data('bs.validator');

validator.update();
validator.validate();

$stepForm.find(':not(.selectize-input)>:input:not(.btn)').each(function() {
Expand Down

0 comments on commit 6b7f42f

Please sign in to comment.