IssueRaiser

CDK Drag Drop issues with nested lists

#### Reproduction https://stackblitz.com/edit/angular-drag-and-drop-child-groups-fxzjja?file=app%2Fcdk-drag-drop-connected-sorting-group-example.html Steps to reproduce: 1. Try to drag element "Brush teeth" to before "Drive to office" or before "Walk dog" 2. this will not be possible #### Expected Behavior Drag / Drop to all lists contained in cdkDropListConnectedTo #### Actual Behavior Items from inner Lists may only be dropped to outer lists, not to sibling or their own lists #### Environment - Angular: 8.1.2 - CDK/Material: 8.1.2 - Browser(s): Firefox / Chrome - Operating System (e.g. Windows, macOS, Ubuntu): Debian Linux, Windows #### Additional Info When using CDK drag / drop (8.0.0 up to and including 8.1.2) with nested lists, two issues arise that prevent an easy use of the feature: a) dragging does not work from inner list to inner list - See https://stackblitz.com/edit/angular-drag-and-drop-child-groups-fxzjja?file=app%2Fcdk-drag-drop-connected-sorting-group-example.html - When dragging an inner item (e.g. Brush teeth) it is only possible to drop it in the outer list, not in its own list and not in its sibling list. - It turns out, that order in cdkDropListConnectedTo is important: when I reverse the items, it will partially work: See https://stackblitz.com/edit/angular-drag-and-drop-child-groups-mxrkae?file=app%2Fcdk-drag-drop-connected-sorting-group-example.html - Still, it is not possible to drop an item from an inner list in into its own list

Posted by shesse on Aug 2, 2019, 8:37 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments

github (SaaS)

CDK Drag Drop issues with nested lists

shesseAug 2, 2019, 8:37 PM

#### Reproduction https://stackblitz.com/edit/angular-drag-and-drop-child-groups-fxzjja?file=app%2Fcdk-drag-drop-connected-sorting-group-example.html Steps to reproduce: 1. Try to drag element "Brush teeth" to before "Drive to office" or before "Walk dog" 2. this will not be possible #### Expected Behavior Drag / Drop to all lists contained in cdkDropListConnectedTo #### Actual Behavior Items from inner Lists may only be dropped to outer lists, not to sibling or their own lists #### Environment - Angular: 8.1.2 - CDK/Material: 8.1.2 - Browser(s): Firefox / Chrome - Operating System (e.g. Windows, macOS, Ubuntu): Debian Linux, Windows #### Additional Info When using CDK drag / drop (8.0.0 up to and including 8.1.2) with nested lists, two issues arise that prevent an easy use of the feature: a) dragging does not work from inner list to inner list - See https://stackblitz.com/edit/angular-drag-and-drop-child-groups-fxzjja?file=app%2Fcdk-drag-drop-connected-sorting-group-example.html - When dragging an inner item (e.g. Brush teeth) it is only possible to drop it in the outer list, not in its own list and not in its sibling list. - It turns out, that order in cdkDropListConnectedTo is important: when I reverse the items, it will partially work: See https://stackblitz.com/edit/angular-drag-and-drop-child-groups-mxrkae?file=app%2Fcdk-drag-drop-connected-sorting-group-example.html - Still, it is not possible to drop an item from an inner list in into its own list

Comments (0)

No comments yet. Start the discussion.

Comment on this issue