Skip to content

Commit

Permalink
Update comment to reflect new behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewserong committed Mar 29, 2023
1 parent 9ad154c commit 8614fbc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,10 @@ function getListViewDropTarget( blocksData, position ) {

// If the user is dragging towards the bottom of the block check whether
// they might be trying to nest the block as a child.
// If the block already has inner blocks, this should always be treated
// If the block already has inner blocks, and is expanded, this should be treated
// as nesting since the next block in the tree will be the first child.
// However, if the block is collapsed, dragging beneath the block should
// still be allowed, as the next visible block in the tree will be a sibling.
if (
isDraggingBelow &&
candidateBlockData.canInsertDraggedBlocksAsChild &&
Expand Down

0 comments on commit 8614fbc

Please sign in to comment.