Skip to content

[BUG]: Nested Drag-and-Drop Conflict: Dragging Child Component Also Moves Parent Container #130

@SsagarikaR

Description

@SsagarikaR

Describe the bug

When a component is dropped inside a ContainerComponent , dragging the nested child component also incorrectly triggers the drag operation for the parent container, causing both elements to move simultaneously.

Steps to reproduce

Drag a ContainerComponent onto the canvas.

Drag any basic component (e.g., TextComponent, ImageComponent) and drop it inside the ContainerComponent.

Attempt to drag the newly nested child component.

Observe: Both the child component and the parent ContainerComponent move together.

Expected behavior

When a nested component is dragged, only the nested component should move. The parent ContainerComponent should remain stationary, serving only as the coordinate system for the child.

What is actually happening?

When a component is dropped inside a ContainerComponent , dragging the nested child component also incorrectly triggers the drag operation for the parent container, causing both elements to move simultaneously.

Screenshots

Image

Any additional comments?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions