From ec1afc35ee12d24d30e0f1a31f2fd423312bd38f Mon Sep 17 00:00:00 2001 From: Grant Totinov Date: Fri, 15 May 2026 20:27:13 +0300 Subject: [PATCH] fix(drag-handle-react): forward getReferencedVirtualElement to plugin (#7832) * fix(drag-handle-react): forward getReferencedVirtualElement to plugin The React DragHandle component defined the prop but did not pass it to DragHandlePlugin, making the API ineffective. * chore: add changeset --- .changeset/wet-poets-knock.md | 5 +++++ packages/extension-drag-handle-react/src/DragHandle.tsx | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 .changeset/wet-poets-knock.md diff --git a/.changeset/wet-poets-knock.md b/.changeset/wet-poets-knock.md new file mode 100644 index 0000000000..2dd192c141 --- /dev/null +++ b/.changeset/wet-poets-knock.md @@ -0,0 +1,5 @@ +--- +'@tiptap/extension-drag-handle-react': patch +--- + +Fix missing forwarding of getReferencedVirtualElement in DragHandle React component diff --git a/packages/extension-drag-handle-react/src/DragHandle.tsx b/packages/extension-drag-handle-react/src/DragHandle.tsx index 099d913817..fe0e1b68e4 100644 --- a/packages/extension-drag-handle-react/src/DragHandle.tsx +++ b/packages/extension-drag-handle-react/src/DragHandle.tsx @@ -71,6 +71,7 @@ export const DragHandle = (props: DragHandleProps) => { onNodeChange, onElementDragStart, onElementDragEnd, + getReferencedVirtualElement, computePositionConfig = defaultComputePositionConfig, nested = false, } = props @@ -116,6 +117,7 @@ export const DragHandle = (props: DragHandleProps) => { onElementDragStart, onElementDragEnd, onNodeChange, + getReferencedVirtualElement, nestedOptions, }) @@ -131,6 +133,7 @@ export const DragHandle = (props: DragHandleProps) => { element, editor, onNodeChange, + getReferencedVirtualElement, pluginKey, computePositionConfig, onElementDragStart,