Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Validation error on a pristine model don't set form $valid to false #8035

Closed
jostein-skaar opened this issue Jul 1, 2014 · 3 comments
Closed

Comments

@jostein-skaar
Copy link

When for instance ng-maxlength="5" and the initial text length is > 5, form.$valid should be false. This works fine in 1.3.0-beta.11, but not in 12 or later.

http://plnkr.co/edit/i6OqLAqoXVCtxXLnGGz6?p=preview

@shahata
Copy link
Contributor

shahata commented Jul 1, 2014

This is fixed by #7837

@btford
Copy link
Contributor

btford commented Jul 8, 2014

Closing as a duplicate. Let me know if this is still an issue with a version of angular including @shahata's fix and I'll re-open it.

@btford btford closed this as completed Jul 8, 2014
@jostein-skaar
Copy link
Author

Very good. Thanks @shahata!

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

No branches or pull requests

3 participants