From 340604353885017f39095554b0c47f40aabe864b Mon Sep 17 00:00:00 2001 From: Harald Fassler Date: Thu, 30 May 2019 16:28:28 +0200 Subject: [PATCH] follow-up fix to #2871 --- src/compiler/compile/render-dom/wrappers/Element/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/compiler/compile/render-dom/wrappers/Element/index.ts b/src/compiler/compile/render-dom/wrappers/Element/index.ts index e7a77544ba82..712fab3ecae4 100644 --- a/src/compiler/compile/render-dom/wrappers/Element/index.ts +++ b/src/compiler/compile/render-dom/wrappers/Element/index.ts @@ -775,11 +775,10 @@ export default class ElementWrapper extends Wrapper { ${rect} = ${this.var}.getBoundingClientRect(); `); - const prepare_outro = outro ? `@prepare_outro(${this.var}, ${rect})` : ``; block.builders.fix.add_block(deindent` @fix_position(${this.var}); ${stop_animation}(); - ${prepare_outro} + ${outro && `@prepare_outro(${this.var}, ${rect});`} `); const params = this.node.animation.expression ? this.node.animation.expression.render(block) : '{}';