Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ng-repeat appears to break validate-on #90

Open
micahblu opened this issue May 27, 2016 · 1 comment
Open

Ng-repeat appears to break validate-on #90

micahblu opened this issue May 27, 2016 · 1 comment

Comments

@micahblu
Copy link

I have setup a fork that demonstrates the odd behavior in the demo directory. Essentially fields that are generated from within a ng-repeat loop appear to cause cross field validation, apparently confusing which elements to validate and ignoring the validate-on condition. For example you'll be on field A or B which have 'dirty' validate-on conditions and they will not validate until the last field C which has a 'blur' condition is validated

[email protected]:micahblu/angular-validator.git

Any help would be appreciated, even if just to point me in the right direction to debug it.

@micahblu
Copy link
Author

Update

I can see one of the issue from my demo is that I was using the same literal string for the name attribute for each element in the loop. What I've now attempted to do is pass a template expression i.e. {{field.id}} for this value but its breaking at line 178 when attempting to set the validity on the element due to the expression not being evaluated; Its literally seeing name as {{field.id}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant