Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed May 9, 2024
1 parent 0f4b4d4 commit 2a25d35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const InserterDraggableBlocks = ( {
} }
__experimentalDragComponent={
pattern ? (
false
false // Setting dragComponent explicitly to false, so that the browser handles the drag image.
) : (
<BlockDraggableChip
count={ blocks.length }
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/draggable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export function Draggable( {
JSON.stringify( transferData )
);

// If dragComponent is explicitly set to false then let the browser handle the drag image.
if ( dragComponent === false ) {
return;
}
Expand Down

0 comments on commit 2a25d35

Please sign in to comment.