Skip to content

Commit

Permalink
fix: Local transitions from #key blocks
Browse files Browse the repository at this point in the history
When adding `|local` to a transition inside a {#key} block, only the outro was triggered not the intro.

This PR fixes sveltejs#5950
  • Loading branch information
bfanger committed Feb 18, 2022
1 parent 252895d commit 05a5976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/compile/render_dom/wrappers/KeyBlock.ts
Expand Up @@ -106,7 +106,7 @@ export default class KeyBlockWrapper extends Wrapper {
}
${this.var} = ${this.block.name}(#ctx);
${this.var}.c();
${has_transitions && b`@transition_in(${this.var})`}
${has_transitions && b`@transition_in(${this.var}, 1)`}
${this.var}.m(${this.get_update_mount_node(anchor)}, ${anchor});
`;

Expand Down

0 comments on commit 05a5976

Please sign in to comment.