Skip to content

Commit

Permalink
Disable in-between inserter in Manual grids (#63391)
Browse files Browse the repository at this point in the history
Co-authored-by: tellthemachines <isabel_brison@git.wordpress.org>
Co-authored-by: noisysocks <noisysocks@git.wordpress.org>
  • Loading branch information
3 people authored Jul 11, 2024
1 parent da3a3e8 commit 960601f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export function useInBetweenInserter() {
__unstableIsWithinBlockOverlay,
getBlockEditingMode,
getBlockName,
getBlockAttributes,
} = useSelect( blockEditorStore );
const { showInsertionPoint, hideInsertionPoint } =
useDispatch( blockEditorStore );
Expand Down Expand Up @@ -79,7 +80,10 @@ export function useInBetweenInserter() {
if (
getTemplateLock( rootClientId ) ||
getBlockEditingMode( rootClientId ) === 'disabled' ||
getBlockName( rootClientId ) === 'core/block'
getBlockName( rootClientId ) === 'core/block' ||
( rootClientId &&
getBlockAttributes( rootClientId ).layout
?.isManualPlacement )
) {
return;
}
Expand Down

0 comments on commit 960601f

Please sign in to comment.