Browse Source

Fix identical validator issue with not clearing has-error class

Andrew Lavers 11 years ago
parent
commit
4fc71a0f37
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/js/bootstrapValidator.js

+ 1 - 1
src/js/bootstrapValidator.js

@@ -813,7 +813,7 @@
                                     .find('.help-block[data-bv-validator][data-bv-for="' + field + '"]')
                                     .filter(function() {
                                         var display = $(this).css('display'), v = $(this).attr('data-bv-validator');
-                                        return ('block' == display) || ($field.data('bv.result.' + v) && $field.data('bv.result.' + v) != that.STATUS_VALID);
+                                        return $field.data('bv.result.' + v) && $field.data('bv.result.' + v) != that.STATUS_VALID;
                                     })
                                     .length != 0)
                             {