Skip to content

Commit

Permalink
Remove Keyboard.dismiss() when deleting block
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewalczak authored and mchowning committed May 27, 2020
1 parent 5c55497 commit feed0ee
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { Keyboard, View } from 'react-native';
import { View } from 'react-native';

/**
* WordPress dependencies
Expand Down Expand Up @@ -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 );

0 comments on commit feed0ee

Please sign in to comment.