-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
GThis is is related to a Google internal issueThis is is related to a Google internal issueP2The issue is important to a large percentage of users, with a workaroundThe issue is important to a large percentage of users, with a workaround
Description
Dragging items from one list to another list where both list are in the same shadow roots does not work.
Reproduction
Steps to re-create:
- Use the example from https://material.angular.io/cdk/drag-drop/overview#transferring-items-between-lists
- Go to https://stackblitz.com/angular/mgodlvpbbjd?file=app%2Fcdk-drag-drop-connected-sorting-example.ts
- Change the CdkDragDropConnectedSortingExample to use ViewEncapsulation.ShadowDom
- See the issue: item from one list cannot be dragged to another list.
This is because of the condition check "elementFromPoint === nativeElement || nativeElement.contains(elementFromPoint)" in the method _canReceive : https://github.com/angular/components/blob/master/src/cdk/drag-drop/drop-list-ref.ts#L834
Metadata
Metadata
Assignees
Labels
GThis is is related to a Google internal issueThis is is related to a Google internal issueP2The issue is important to a large percentage of users, with a workaroundThe issue is important to a large percentage of users, with a workaround