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

Ember forms loosing binding when wrapped in `if` statement (Ember 1.13.2) #106

Open jniechcial opened 9 years ago

jniechcial commented 9 years ago

Hi, we got an issue after updating Ember to 1.13. Our em-inputs are loosing binding to the property when rendered in if statement after the condition changes. Take a look at example:

em-form model=this submit_button=false      
  = em-input type="text" property="myBinding"
  if someCondition
    = em-input type="text" property="myBinding"
  else
    = em-input type="text" property="myBinding"

The first input is working always. The second and the third are working depending of which one is rendered first until the condition changes.

Do you know what may be the reason for such behaviour? The case may be in using Glimmer engine after the update.