Skip to content

Commit

Permalink
Fix media dragging and dropping
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Aug 21, 2020
1 parent 15747bd commit 065ea1e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ function getDropTargetBlocksData(
rootClientId,
blockIndex: getBlockIndex( clientId, rootClientId ),
element: blockElement,
isDraggedBlock: draggedBlockClientIds.includes( clientId ),
isDraggedBlock: isBlockDrag
? draggedBlockClientIds.includes( clientId )
: false,
innerBlockCount: getBlockCount( clientId ),
canInsertDraggedBlocksAsSibling: isBlockDrag
? canInsertBlocks( draggedBlockClientIds, rootClientId )
Expand Down

0 comments on commit 065ea1e

Please sign in to comment.