Skip to content

Commit b61d3ef

Browse files
committed
Changing one attribute name.
1 parent 0203fdb commit b61d3ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/directives/validation.directive.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ angular.module("bootstrap.angular.validation").directive("bsValidation", ["$inte
3939
// Search parent element with class form-group to operate on.
4040
var formGroupElement = $element.parents(".form-group");
4141

42-
// Search for an attribute "form-group" if the class ".form-group" is not available
42+
// Search for an attribute "bs-form-group" if the class ".form-group" is not available
4343
if (!formGroupElement || formGroupElement.length === 0) {
44-
formGroupElement = $element.parents("[form-group]");
44+
formGroupElement = $element.parents("[bs-form-group]");
4545

4646
// If we still don't find any element
4747
if (!formGroupElement || formGroupElement.length === 0) {

0 commit comments

Comments
 (0)