From 740b93df69eba9dc0d7f32c05760e2a5a1b8d695 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Thu, 15 Jun 2017 18:11:08 +0100 Subject: [PATCH] Blocks: Fix scrolling to the image and gallery blocks on Insert --- blocks/media-upload-button/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/media-upload-button/index.js b/blocks/media-upload-button/index.js index 1f908ec5aaac3..f743ef7129076 100644 --- a/blocks/media-upload-button/index.js +++ b/blocks/media-upload-button/index.js @@ -28,7 +28,7 @@ class MediaUploadButton extends Component { componentDidMount() { if ( !! this.props.autoOpen ) { - this.frame.open(); + setTimeout( () => this.frame.open() ); } }