Emerson / ember-form-master-2000

A simple form builder for Ember built as an Ember-CLI addon.
MIT License
40 stars 18 forks source link

Fix: do not apply has-error class if errors array is empty #33

Closed jelhan closed 9 years ago

jelhan commented 9 years ago

Boolean([]) === true therefore an empty errors array caused has-error class.

Run in this issue when using ember-cp-validations which provides an empty validations.attrs.<attribute-name>.messages array if model is valid.