Skip to content

Commit

Permalink
Remove wrapper div from frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz committed Apr 30, 2023
1 parent dc6eaef commit 00d381d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion packages/block-library/src/pattern/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"description": "Show a block pattern.",
"supports": {
"align": [ "wide", "full" ],
"__experimentalLayout": true
"__experimentalLayout": {
"allowEditing": false
}
},
"textdomain": "default",
"attributes": {
Expand Down
4 changes: 1 addition & 3 deletions packages/block-library/src/pattern/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,5 @@ export default function save( { attributes } ) {
}
const blockProps = useBlockProps.save();
const innerBlocksProps = useInnerBlocksProps.save( blockProps );
return (
<div { ...{ ...innerBlocksProps } }>{ innerBlocksProps.children }</div>
);
return <>{ innerBlocksProps.children }</>;
}

0 comments on commit 00d381d

Please sign in to comment.