Skip to content

Commit

Permalink
Fix writing flow
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Feb 28, 2020
1 parent 90f33cf commit 1fea682
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/block-editor/src/utils/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ export function isInsideRootBlock( blockElement, element ) {
* @return {boolean} Whether element contains inner blocks.
*/
export function hasInnerBlocksContext( element ) {
return !! element.querySelector( '.block-editor-block-list__layout' );
return (
element.classList.contains( 'block-editor-block-list__layout' ) ||
!! element.querySelector( '.block-editor-block-list__layout' )
);
}

/**
Expand Down

0 comments on commit 1fea682

Please sign in to comment.