fix: ensure we clear down each block opening anchors from document

pull/11740/head
Dominic Gannaway 2 years ago
parent 4f9096a5a8
commit dfbed8ea4e

@ -280,7 +280,7 @@ function reconcile(array, state, anchor, render_fn, flags, get_key) {
item = items.get(key);
if (item === undefined) {
var child_open = push_template_node(empty());
var child_open = empty();
var child_anchor = current ? current.o : anchor;
child_anchor.before(child_open);
@ -407,6 +407,7 @@ function reconcile(array, state, anchor, render_fn, flags, get_key) {
for (var i = 0; i < to_destroy.length; i += 1) {
var item = to_destroy[i];
items.delete(item.k);
remove(item.o);
link(item.prev, item.next);
}
});

Loading…
Cancel
Save