ember-stickler icon indicating copy to clipboard operation
ember-stickler copied to clipboard

How to enable the initial validation after rendering

Open jchonc opened this issue 9 years ago • 0 comments

What's the optimal way to force all fields to do the initial validation after rending? I was using didReceiveAttrs but if some fields are show/hide depending on the some other value.

Thanks

<select1>
{{#if eq model.value1 'a'}}
  <text2>
{{else}}
  <text3>
{{/if}}

upon toggle the value I see a

DEPRECATION: You modified (mut (hash submit=(action "submit") reset=(action "reset") errors=submitErrors state=formState validation=(component "validation-wrapper" register=(action "register") forget=(action "forget")))) twice in a single render. This was unreliable in Ember 1.x and will be removed in Ember 3.0 [deprecation id: ember-views.render-double-modify]

jchonc avatar Jun 12 '16 20:06 jchonc