Skip to content

Commit

Permalink
Fix regression in moving blocks from Grid block
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Feb 4, 2025
1 parent 80e3d77 commit 0ded876
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,18 @@ const EditBlockWrapper = (props) => {

const style = buildStyleObjectFromData(data);

// We need to merge the StyleWrapper styles with the draggable props from b-D&D
const styleMergedWithDragProps = {
...draginfo.draggableProps,
style: { ...style, ...draginfo.draggableProps.style },
};

return (
<div
ref={draginfo.innerRef}
{...draginfo.draggableProps}
{...styleMergedWithDragProps}
{...draginfo.dragHandleProps}
className={cx(`block-editor-${data['@type']} contained`, { selected })}
style={style}
>
<div
role="presentation"
Expand Down

0 comments on commit 0ded876

Please sign in to comment.