ember-stickler
ember-stickler copied to clipboard
How to enable the initial validation after rendering
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]