Drag Drop CDK: keep showing dragged element inside starting list

Discussão em 'Angular' iniciado por Federico Galfione, Setembro 2, 2025.

  1. I'm playing with cdk Drag and Drop cause I need it to create a POC for work. I started with this code from the documentation website. I saw that every time I drag an element outside its list, said element is hidden until I drop it in the same list or in another one.

    So tell me if I'm wrong, but it seems that the dragged element is not a copy of the list item, but instead it's the element itself.

    In conclusion I want the list to not change its layout while I'm dragging one of its elements.

    Long story short:

    CURRENT BEHAVIOUR [​IMG]

    EXPECTED BEHAVIOR [​IMG]

    I didn't found anything to do this in the cdk documentation.

    Continue reading...

Compartilhe esta Página