Commit 8ca5aa3a authored by Aron Carroll's avatar Aron Carroll Committed by Randall Leeds

Only show field error messages if dirty

parent 9a12984b
......@@ -33,7 +33,7 @@ formValidate = ['$timeout', ($timeout) ->
# Validate field when the content changes.
elem.on 'change', ':input', ->
forEachField(updateField)
forEachField (field) -> updateField(field) if field.$dirty
# Validate form on submit and set flag for error watcher.
elem.on 'submit', ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment