Skip to content

Commit

Permalink
Update id
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewserong committed Aug 18, 2023
1 parent e226474 commit 51d787d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/block-editor/src/components/list-view/block-contents.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,12 @@ const ListViewBlockContents = forwardRef(
[]
);

const { AdditionalBlockContent, insertedBlock, setInsertedBlock } =
useListViewContext();
const {
AdditionalBlockContent,
insertedBlock,
listViewInstanceId,
setInsertedBlock,
} = useListViewContext();

const isBlockMoveTarget =
blockMovingClientId && selectedBlockInBlockEditor === clientId;
Expand Down Expand Up @@ -77,7 +81,7 @@ const ListViewBlockContents = forwardRef(
<BlockDraggable
clientIds={ draggableClientIds }
__experimentalDragComponent={ null }
elementId={ `list-view-block-${ clientId }` }
elementId={ `list-view-${ listViewInstanceId }-block-${ clientId }` }
>
{ ( { draggable, onDragStart, onDragEnd } ) => (
<ListViewBlockSelectButton
Expand Down

0 comments on commit 51d787d

Please sign in to comment.