Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

Field is being validated automatically when required is set #641

Closed
diegofal opened this issue Mar 13, 2016 · 2 comments
Closed

Field is being validated automatically when required is set #641

diegofal opened this issue Mar 13, 2016 · 2 comments

Comments

@diegofal
Copy link

When I set the "required" attribute, as soon as the page is loaded the field appears in red. This is not the default behavior of the required attribute right?

Is this something being fixed currently?
Thanks!

@joaocmfcm
Copy link

joaocmfcm commented May 12, 2016

I am running into the same issue. The validation should only be done on $dirty or $touched states, I guess

Uriil pushed a commit to Uriil/ngTagsInput that referenced this issue Aug 17, 2016
Standard behavior for required directive is to keep control invalid but hide error message

Closes mbenford#641.
@mbenford
Copy link
Owner

This issue was selected to be spring-cleaned by a script. More information can be found here.

If anyone thinks this was a mistake and this issue should be reopened, please leave a message below explaining why. Before doing so, please consider reading the CONTRIBUTING file.

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