Skip to content

Commit

Permalink
Fix blocks dropping incorrectly in nested blocks (#23950)
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan authored and ellatrix committed Jul 20, 2020
1 parent 5cd6da2 commit 1e82285
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,10 @@ export default function useBlockDropZone( {
return;
}

const sourceBlockIndex = getBlockIndex( sourceClientIds[ 0 ] );
const sourceBlockIndex = getBlockIndex(
sourceClientIds[ 0 ],
sourceRootClientId
);

// If the user is dropping to the same position, return early.
if (
Expand Down

0 comments on commit 1e82285

Please sign in to comment.