diff --git a/packages/block-editor/src/components/provider/index.js b/packages/block-editor/src/components/provider/index.js index 0fa3f042053d0..c3a87dfb5ff00 100644 --- a/packages/block-editor/src/components/provider/index.js +++ b/packages/block-editor/src/components/provider/index.js @@ -45,7 +45,7 @@ export const ExperimentalBlockEditorProvider = withRegistryProvider( useBlockSync( props ); return ( - + { children } diff --git a/packages/components/src/slot-fill/index.js b/packages/components/src/slot-fill/index.js index 34216fd347c05..a092845223f2b 100644 --- a/packages/components/src/slot-fill/index.js +++ b/packages/components/src/slot-fill/index.js @@ -35,9 +35,9 @@ export const Slot = forwardRef( ( { bubblesVirtually, ...props }, ref ) => { return ; } ); -export function Provider( { children, ...props } ) { +export function Provider( { children, passthrough = false, ...props } ) { const parent = useContext( SlotFillContext ); - if ( ! parent.isDefault ) { + if ( ! parent.isDefault && passthrough ) { return children; } return (