fix: destroy non-fragment element such as empty components

pull/7492/head
qinmu 4 years ago committed by qinmu
parent 11ada98565
commit 007d952e05

@ -79,6 +79,9 @@ export function transition_out(block: Fragment, local: 0 | 1, detach?: 0 | 1, ca
}); });
block.o(local); block.o(local);
// fix: destroy non-fragment element such as empty components.
} else if (typeof callback === 'function') {
callback();
} }
} }
@ -143,7 +146,7 @@ export function create_in_transition(node: Element & ElementCSSInlineStyle, fn:
return { return {
start() { start() {
if (started) return; if (started) return;
started = true; started = true;
delete_rule(node); delete_rule(node);

Loading…
Cancel
Save