New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dragging with encapsulation: ViewEncapsulation.Native #15
Comments
Can you copy/paste the code here or give me a link on Plunker or so to have more details? |
suppose i have following example where i am trying to drag and drop across components i.e. DndDemo and DndDemo2 having same dropzones.(works well if i dont use ViewEncapsulation.Native) but with encapsulation native it fails.(shadowDom) Component1: "DndDemo" @component({ Multi list sortable COMPONENT 1Available boxers <div class="panel-body" dnd-sortable-container [dropZones]="['boxers-zone']" [sortableData]="listBoxers"> <li *ngFor="#item of listBoxers; #i = index" class="list-group-item" dnd-sortable [sortableIndex]="i">{{item}} First Team <div class="panel-body" dnd-sortable-container [dropZones]="['boxers-zone']" [sortableData]="listTeamOne"> <li *ngFor="#item of listTeamOne; #i = index" class="list-group-item" dnd-sortable [sortableIndex]="i">{{item}} Second Team <div class="panel-body" dnd-sortable-container [dropZones]="['boxers-zone']" [sortableData]="listTeamTwo"> <li *ngFor="#item of listTeamTwo; #i = index" class="list-group-item" dnd-sortable [sortableIndex]="i">{{item}} `, Component 2: DndDemo2 @component({ template: |
i guess i am not able to copy whole code here let me try again. |
Fear enough - let me check what the core of the problem. |
As a possible solution have a look into:
The proposal: Use |
Really nice work!!
i m trying to drag using directive * dnd-sortable-container* on a container with
"encapsulation: ViewEncapsulation.Native" seems like it doesnt work.
The text was updated successfully, but these errors were encountered: