Skip to content

Commit a183118

Browse files
committed
the success class was never removed so the validation message appeared in wrong style for errors that appeared after a successful validation.
1 parent b302f31 commit a183118

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/validation.service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ angular.module('bootstrap.angular.validation').factory('BsValidationService', ['
7575
},
7676

7777
addErrorClass: function($formGroupElement) {
78-
this.removeErrorClass($formGroupElement);
78+
this.removeSuccessClass($formGroupElement);
7979
$formGroupElement.addClass(validationConfig.errorClass);
8080
},
8181

0 commit comments

Comments
 (0)