fix: ensure we clear down each block opening anchors from document (#11740)

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

* fix: ensure we clear down each block opening anchors from document
pull/11743/head
Dominic Gannaway 1 year ago committed by GitHub
parent 401c8b23be
commit a074734ba7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
"svelte": patch
---
fix: ensure we clear down each block opening anchors from document

@ -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