From d3e58f79082b13a5e51c222cf00e097a3080009e Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Mon, 8 Mar 2021 19:42:51 +0000 Subject: [PATCH] Delay slidedown animation to fix layout Without this, the animation expands from somewhere in the middle of the block --- .../src/components/StreamField/blocks/BaseSequenceBlock.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/components/StreamField/blocks/BaseSequenceBlock.js b/client/src/components/StreamField/blocks/BaseSequenceBlock.js index 1615e302e6..b4cc753779 100644 --- a/client/src/components/StreamField/blocks/BaseSequenceBlock.js +++ b/client/src/components/StreamField/blocks/BaseSequenceBlock.js @@ -93,7 +93,10 @@ export class BaseSequenceChild { this.block = this.blockDef.render(blockElement, this.prefix + '-value', initialState); if (animate) { - dom.hide().slideDown(); + dom.hide(); + setTimeout(() => { + dom.slideDown(); + }, 10); } }