From d26fb5143cda181736259d816746a90b68b3563a Mon Sep 17 00:00:00 2001 From: Joen Asmussen Date: Fri, 2 Nov 2018 11:47:10 +0100 Subject: [PATCH] Fix the clickable issue by adding another div. --- .../editor/src/components/block-list/block.js | 57 ++++++++++--------- 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/packages/editor/src/components/block-list/block.js b/packages/editor/src/components/block-list/block.js index 22b73f66436449..7674a684777546 100644 --- a/packages/editor/src/components/block-list/block.js +++ b/packages/editor/src/components/block-list/block.js @@ -510,13 +510,7 @@ export class BlockListBlock extends Component { { isFirstMultiSelected && ( ) } - +
{ shouldShowBreadcrumb && ( ) } { shouldShowContextualToolbar && } - - { isValid && blockEdit } - { isValid && mode === 'html' && ( - + + + { isValid && blockEdit } + { isValid && mode === 'html' && ( + + ) } + { ! isValid && [ + , +
+ { getSaveElement( blockType, block.attributes ) } +
, + ] } +
+ { shouldShowMobileToolbar && ( + ) } - { ! isValid && [ - , -
- { getSaveElement( blockType, block.attributes ) } -
, - ] } -
- { shouldShowMobileToolbar && ( - - ) } - { !! error && } - + { !! error && } + +
{ showEmptyBlockSideInserter && (