Skip to content

Commit b330890

Browse files
authored
fix: Fixes Super sections drag and drop issues on mobile (#3003)
1 parent 150e1a3 commit b330890

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/web/src/javascripts/Components/SuperEditor/Plugins/DraggableBlockPlugin

packages/web/src/javascripts/Components/SuperEditor/Plugins/DraggableBlockPlugin/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ function useDraggableBlockMenu(editor: LexicalEditor, anchorElem: HTMLElement, i
310310
return false
311311
}
312312

313-
const dragData = dataTransfer?.getData(DRAG_DATA_FORMAT) || ''
313+
const dragData = dataTransfer?.getData(DRAG_DATA_FORMAT) || draggedNodeKey || ''
314314
const draggedNode = $getNodeByKey(dragData)
315315
if (!draggedNode) {
316316
return false

0 commit comments

Comments
 (0)