From 88194639ee4bdd320fc881565a339e2b0d7ade42 Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Wed, 25 Mar 2026 09:59:04 +0100 Subject: [PATCH] TASK: New 9.1 Drag and drop: Let server feedback determine node removal from the dom With the 9.0 fix https://github.com/neos/neos-ui/pull/4018 we can adjust Neos 9.1 where we currently get the inline drag and drop to function by removing the dom node manually. This is no longer necessary and saves us the todo to actually verify that the server can move the node --- .../src/InlineUI/DragAndDropUi/index.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/neos-ui-guest-frame/src/InlineUI/DragAndDropUi/index.tsx b/packages/neos-ui-guest-frame/src/InlineUI/DragAndDropUi/index.tsx index 2763c9afbe..83f4d1c057 100644 --- a/packages/neos-ui-guest-frame/src/InlineUI/DragAndDropUi/index.tsx +++ b/packages/neos-ui-guest-frame/src/InlineUI/DragAndDropUi/index.tsx @@ -9,7 +9,6 @@ import {FusionPath, InsertPosition, Node, NodeContextPath} from '@neos-project/n import { closestContextPathInGuestFrame, closestNodeInGuestFrame, - findNodeInGuestFrame, getGuestFrameDocument // @ts-ignore } from '@neos-project/neos-ui-guest-frame/src/dom'; @@ -225,13 +224,6 @@ const DragAndDropUi: React.FC = targetNodeContextPath, insertPosition ); - - // Remove the original node from the DOM - // TODO: Verify that the move was successful before removing the node - const movedNode = findNodeInGuestFrame(draggedNodeContextPath, draggedNodeFusionPath); - if (movedNode) { - movedNode.remove(); - } }, []); const handleDragEnd = useCallback(() => {