Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -225,13 +224,6 @@ const DragAndDropUi: React.FC<DragAndDropUiProps & InjectedDragAndDropUiProps> =
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(() => {
Expand Down
Loading