Skip to content

Commit 05a5976

Browse files
committed
fix: Local transitions from #key blocks
When adding `|local` to a transition inside a {#key} block, only the outro was triggered not the intro. This PR fixes #5950
1 parent 252895d commit 05a5976

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/compile/render_dom/wrappers/KeyBlock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export default class KeyBlockWrapper extends Wrapper {
106106
}
107107
${this.var} = ${this.block.name}(#ctx);
108108
${this.var}.c();
109-
${has_transitions && b`@transition_in(${this.var})`}
109+
${has_transitions && b`@transition_in(${this.var}, 1)`}
110110
${this.var}.m(${this.get_update_mount_node(anchor)}, ${anchor});
111111
`;
112112

0 commit comments

Comments
 (0)