From feed0ee1555fe53d1532319db6112a6f90393b77 Mon Sep 17 00:00:00 2001 From: lukewalczak Date: Wed, 27 May 2020 16:47:50 +0200 Subject: [PATCH] Remove Keyboard.dismiss() when deleting block --- .../src/components/block-mobile-toolbar/index.native.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/block-editor/src/components/block-mobile-toolbar/index.native.js b/packages/block-editor/src/components/block-mobile-toolbar/index.native.js index efe3117bf5d39..6168f56ca098f 100644 --- a/packages/block-editor/src/components/block-mobile-toolbar/index.native.js +++ b/packages/block-editor/src/components/block-mobile-toolbar/index.native.js @@ -1,7 +1,7 @@ /** * External dependencies */ -import { Keyboard, View } from 'react-native'; +import { View } from 'react-native'; /** * WordPress dependencies @@ -76,11 +76,7 @@ export default compose( const { removeBlock } = dispatch( 'core/block-editor' ); return { onDelete: - onDelete || - ( () => { - Keyboard.dismiss(); - removeBlock( clientId, rootClientId ); - } ), + onDelete || ( () => removeBlock( clientId, rootClientId ) ), }; } ) )( BlockMobileToolbar );