Skip to content

Commit

Permalink
Columns: Disable inserter on column block; Don't show stacked icon on…
Browse files Browse the repository at this point in the history
… columns (#9523)

We can not use the inserter to inserter a column so the inserter should be disabled on this block.
This will also make sure the icon of the columns block does not appear stacked as in fact for the columns we don't have children that we can insert using the inserter.
  • Loading branch information
jorgefilipecosta authored Sep 14, 2018
1 parent cd167ce commit 5bae40e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/block-library/src/columns/column.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ export const settings = {

category: 'common',

supports: {
inserter: false,
},

edit() {
return <InnerBlocks templateLock={ false } />;
},
Expand Down

0 comments on commit 5bae40e

Please sign in to comment.