components
components copied to clipboard
CDK Drag Drop issues with nested lists - On Drop cannot reconize child list
trafficstars
Is this a regression?
- [ ] Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
Hi all, I'm facing an issue and I can't drag and drop correctly when I have nested lists.
The link to understand issue is here: https://stackblitz.com/edit/angular-cdk-drag-drop-vrgtqh?file=app/cdk-drag-drop-connected-example.html
Is there anything to do in this case related to CDK, or it is a limitation?
Thank you all, Guilherme Marques.
Reproduction
Steps to reproduce:
- Drag the second red square
- Drop the second red square in the first red square zone.
The blue square (parent) is overriding the child (red square) and I cannot reach the child red square when I drop.

Expected Behavior
The console log should be: Line 1 - from red-square-2-data Line 2 - to red-square-1-data
Actual Behavior
Check the console log. Line 1 - from red-square-2-data Line 2 - to blue-square-1-data
Environment
- Angular: 12.2.16
- CDK/Material: 12.2.13
- Browser(s): All majors (Chrome, Firefox, Edge)
- Operating System (e.g. Windows, macOS, Ubuntu): Windows Ps: The stackblitz link is using an older version but the issue is the same with the version above.