Closed MaxSanKyu closed 7 years ago
i believe this is fixed in the pack branch
https://github.com/emberjs/list-view/blob/master/packages/list-view/lib/list_view_mixin.js#L137-L147 should actually be: https://github.com/emberjs/list-view/blob/pack/packages/list-view/lib/list_view_mixin.js#L228-L239
Thanks for the quick answer. I tried it out but unfortunately the error still shows up :(
can you put together a jsbin or a failing test?
No need, already solved it by also replacing createChildViewsMorph()
render: function (buffer) {
var element = buffer.element();
var dom = buffer.dom;
var container = dom.createElement('div');
container.className = 'ember-list-container';
element.appendChild(container);
this._childViewsMorph = dom.appendMorph(container, container);
return container;
},
createChildViewsMorph: function (element) {
this._childViewsMorph = this._renderer._dom.appendMorph(element.lastChild, element.lastChild);
return element;
},
Thanks so much for your help!
seems like a bug we should fix, that being said, im not sure why createChildViewsMorph is needed here at all. @jasonmit do you remember why?
Hey,
I'm using Ember 1.8.1 and Ember-CLI 0.1.9
My View looks like this:
The initial rendering of the page works. But when I start scrolling the list and the first element disappears I get the following error:
Maybe someone here knows why or can point me in the right direction?