Skip to content

Commit

Permalink
Disable in-between inserter in Manual grids (WordPress#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 and carstingaxion committed Jul 18, 2024
1 parent c14b0b9 commit 4497cc5
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 4497cc5

Please sign in to comment.