indexiatech / ember-forms

Smart, Intuitive forms for Ember.js styled with Bootstrap, Multi layouts and Validation support.
http://indexiatech.github.io/ember-forms
Apache License 2.0
218 stars 45 forks source link

errors only on focusOut #48

Open opoze opened 9 years ago

opoze commented 9 years ago

Hi! its will be nice if canShowErrors not work only with focusOut. I used backendApi errors to set model.errors, its works well with ember-forms because its use the model.errors to. If wee get that control like: {{em-input label="Name" property="name" canShowErrors=error}} Where error is a computed property, we will have the ember-forms with validation control in backendapi to.

mutewinter commented 9 years ago

:+1: Have this same setup and the user has to focus out of a field to see errors sent by the server.

asaf commented 9 years ago

@opoze Have you tried saying 'canShowErrors=true' ? it should work.

GCorbel commented 9 years ago

I confirm, it works. It can be useful to have this behaviour by default.