You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 1, 2020. It is now read-only.
In some occasion, trying to find the parent form and the form name of an
input element was giving the wrong result. We should call instead
`form.getAttribute("name")` for correct result.
Copy file name to clipboardExpand all lines: readme.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
#Angular Validation (Directive / Service)
2
-
`Version: 1.4.11`
2
+
`Version: 1.4.12`
3
3
### Form validation after user inactivity of default 1sec. (customizable timeout)
4
4
5
5
Forms Validation with Angular made easy! Angular-Validation is an angular directive/service with locales (languages) with a very simple approach of defining your `validation=""` directly within your element to validate (input, textarea, etc) and...that's it!!! The directive/service will take care of the rest!
parentForm.$name=form.name;// make sure it has a $name, since we use that variable later on
752
+
parentForm.$name=formName;// make sure it has a $name, since we use that variable later on
750
753
}
751
754
returnparentForm;
752
755
}
@@ -755,14 +758,17 @@ angular
755
758
756
759
// falling here with a form name but without a form object found in the scope is often due to isolate scope
757
760
// we can hack it and define our own form inside this isolate scope, in that way we can still use something like: isolateScope.form1.$validationSummary
758
-
if(!!form&&!!form.name){
759
-
varobj={$name: form.name,specialNote: 'Created by Angular-Validation for Isolated Scope usage'};
761
+
if(!!form){
762
+
varformName=form.getAttribute("name");
763
+
if(!!formName){
764
+
varobj={$name: formName,specialNote: 'Created by Angular-Validation for Isolated Scope usage'};
0 commit comments