Delay slidedown animation to fix layout

Without this, the animation expands from somewhere in the middle of the block
pull/6931/head
Matt Westcott 2021-03-08 19:42:51 +00:00
rodzic f18a15e142
commit d3e58f7908
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -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);
}
}