diff --git a/src/compiler/compile/render_dom/wrappers/KeyBlock.ts b/src/compiler/compile/render_dom/wrappers/KeyBlock.ts index cbd021ff6c7f..bae6f7511029 100644 --- a/src/compiler/compile/render_dom/wrappers/KeyBlock.ts +++ b/src/compiler/compile/render_dom/wrappers/KeyBlock.ts @@ -1,7 +1,6 @@ import Wrapper from './shared/Wrapper'; import Renderer from '../Renderer'; import Block from '../Block'; -import EachBlock from '../../nodes/EachBlock'; import KeyBlock from '../../nodes/KeyBlock'; import create_debugging_comment from './shared/create_debugging_comment'; import FragmentWrapper from './Fragment'; @@ -19,7 +18,7 @@ export default class KeyBlockWrapper extends Wrapper { renderer: Renderer, block: Block, parent: Wrapper, - node: EachBlock, + node: KeyBlock, strip_whitespace: boolean, next_sibling: Wrapper ) { @@ -106,7 +105,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}); `;