pull/4699/head
Conduitry 6 years ago
parent a0d86dcfe3
commit bbb676af28

@ -521,12 +521,7 @@ export default class IfBlockWrapper extends Wrapper {
const update_mount_node = this.get_update_mount_node(anchor);
const enter = b`
if (!${name}) {
${name} = ${branch.block.name}(#ctx);
${name}.c();
${has_transitions && b`@transition_in(${name}, 1);`}
${name}.m(${update_mount_node}, ${anchor});
} else {
if (${name}) {
${dynamic && b`${name}.p(#ctx, #dirty);`}
${
has_transitions &&
@ -534,6 +529,11 @@ export default class IfBlockWrapper extends Wrapper {
@transition_in(${name}, 1);
}`
}
} else {
${name} = ${branch.block.name}(#ctx);
${name}.c();
${has_transitions && b`@transition_in(${name}, 1);`}
${name}.m(${update_mount_node}, ${anchor});
}
`;

Loading…
Cancel
Save