Skip to content

DragHandle could not be detected inside the component #13727

@100cm

Description

@100cm

here is my html struct:

 <div class="flex-1 flex-top cdk-drag-list" cdkDropList (cdkDropListDropped)="drop($event)">
          <div cdkDrag *ngFor="let item of content.child_contents, let i = index" class="flex cdk-drag=item">

                <dz-menu-group style="position:absolute;right: 0;top: -10px"
                           *ngIf="global_service.modal=='edit' && global_service.pc_editor && 
                           global_service.device_type == 'pc'">
                         <dz-menu-group-item>
                              <span #drag_trigger cdkDragHandle>
                                <at-icon [type]="'move'" class="move"></at-icon>
                                     </span>
                        </dz-menu-group-item>
                        <dz-menu-group-item>
                              <at-icon [type]="'x'" style="cursor: pointer;" (click)="deleteChildContent(i)"></at-icon>
                         </dz-menu-group-item>
            </dz-menu-group>
         </div>
</div>

DragHandle could not work

item still can be dragged and dropped by dom.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions