Skip to content

Commit

Permalink
Use __experimentalExposeControlsToChildren in block supports
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Aug 23, 2021
1 parent ba6a2e0 commit c80e104
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function useBlockControlsFill( group, exposeToChildren ) {
exposeToChildren &&
hasBlockSupport(
getBlockName( clientId ),
'__experimentalCaptureToolbars',
'__experimentalExposeControlsToChildren',
false
) &&
hasSelectedInnerBlock( clientId )
Expand Down
4 changes: 2 additions & 2 deletions packages/block-editor/src/components/inner-blocks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export function useInnerBlocksProps( props = {}, options = {} ) {
const { __experimentalCaptureToolbars, hasOverlay } = useSelect(
( select ) => {
if ( ! clientId ) {
return;
return {};
}

const {
Expand All @@ -160,7 +160,7 @@ export function useInnerBlocksProps( props = {}, options = {} ) {
blocksStore
).hasBlockSupport(
blockName,
'__experimentalCaptureToolbars',
'__experimentalExposeControlsToChildren',
false
),
hasOverlay:
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/buttons/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"supports": {
"anchor": true,
"align": [ "wide", "full" ],
"__experimentalCaptureToolbars": true
"__experimentalExposeControlsToChildren": true
},
"editorStyle": "wp-block-buttons-editor",
"style": "wp-block-buttons"
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/social-links/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"supports": {
"align": [ "left", "center", "right" ],
"anchor": true,
"__experimentalCaptureToolbars": true
"__experimentalExposeControlsToChildren": true
},
"styles": [
{ "name": "default", "label": "Default", "isDefault": true },
Expand Down

0 comments on commit c80e104

Please sign in to comment.