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

Invalid fields stay invalid when emptied #10

Closed
syymza opened this issue Sep 4, 2014 · 1 comment
Closed

Invalid fields stay invalid when emptied #10

syymza opened this issue Sep 4, 2014 · 1 comment
Labels

Comments

@syymza
Copy link
Contributor

syymza commented Sep 4, 2014

I have form with two remotely validated input. They both have an ng-required condotion:

<form name="myName">
    <input type="text" name="firstInput" ng-required="true"/>
    <input type="text" name="secondInput" ng-required="false"/>
</form>

Now, if I add a remote validation to both the inputs, I observe a strange behaviour. If I get to a state where both the inputs are invalid (according to the remote validation), and I empty both of them, firtInput gets the ng-remote-valid class, while secondInput keeps the ng-remote-invalid class.

Now, even if I insert a value in the first input, my form stays invalid.

@valmont valmont added the bug label Sep 4, 2014
@valmont
Copy link
Contributor

valmont commented Sep 5, 2014

This has been resolved in v0.4.1+

@valmont valmont closed this as completed Sep 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants