Overview

Trying to click and drag a component that is in a slot drags the parent component instead of the child you are clicking on,

Proposed resolution

When clicking and dragging via the preview the drag target should always be the innermost item, not any of its parents.

CommentFileSizeAuthor
#7 fix nested drag.gif1.02 MBhooroomoo
2024-08-14 11.32.18.gif253.79 KBjessebaker
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jessebaker created an issue. See original summary.

wim leers’s picture

Visible since #3446722: Introduce an example set of representative SDC components; transition from "component list" to "component tree".

Are tests feasible or overkill? 🤔 AFAIK hover/drag/drop-related things are hard to tests. And this is obviously broken, so any regression on this front would be quickly found anyway?

lauriii’s picture

Title: Cannot drag child components, it drags the parent instead » Cannot place or drag child components

hooroomoo made their first commit to this issue’s fork.

hooroomoo’s picture

Assigned: jessebaker » hooroomoo
hooroomoo’s picture

Assigned: hooroomoo » Unassigned
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new1.02 MB

Added gif to issue summary

wim leers’s picture

Assigned: Unassigned » jessebaker
Status: Needs review » Reviewed & tested by the community

Final sign-off from @jessebaker or @bnjmnm is needed. Asking @jessebaker because he previously reviewed this already.

wim leers’s picture

  • jessebaker committed 5c68207d on 0.x authored by hooroomoo
    Issue #3468049 by hooroomoo, jessebaker, Wim Leers: Cannot place or drag...
wim leers’s picture

Assigned: jessebaker » Unassigned
Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.