You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect didInsertElement to be called once so I can manipulate the DOM element that will be inserted by Ember for this item. I call this code to verify this behaviour:
**didInsertElement**
<div id="ember174" class="ember-view">…</div>
element in DOM: [<div id="ember174" class="ember-view">…</div>]
body parent: [<body class="ember-application">…</body>]
**didInsertElement**
<div id="ember188" class="ember-view">…</div>
element in DOM: []
body parent: []
However, as you can see in the console didInsertElement gets called twice and Ember attempts to insert two elements with two different ID's into the DOM.
The text was updated successfully, but these errors were encountered:
I have also experienced the similar case with a ContainerView (v 0.9.8.1), I had pending to report it and investigate further this issue, meanwhile i assign a view property as workaround.
This is once again failing in 1.0-pre4 ( the latest download from ember.js website ). Can we ensure a fix gets in before 1.0 is finalised? The workarounds are not friendly to avoid doing work twice in didInsertElement
Please take a look at this jsFiddle: http://jsfiddle.net/arasbm/zpuSE/
I add one item into the view content:
I expect
didInsertElement
to be called once so I can manipulate the DOM element that will be inserted by Ember for this item. I call this code to verify this behaviour:and this is the output in the console:
However, as you can see in the console
didInsertElement
gets called twice and Ember attempts to insert two elements with two different ID's into the DOM.The text was updated successfully, but these errors were encountered: