angular / angular/components

bug(Drag and Drop): Unable to hide placeholder

Open
#22,570 1 comment 0 reactions 0 assignees View on GitHub
area: cdk/drag-drop P4
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

#### Reproduction

https://stackblitz.com/edit/angular-rqnoae?file=src/app/cdk-drag-drop-sorting-example.css

Steps to reproduce:
1. set **display:none** in **.cdk-drag-placeholder**

#### Expected Behavior

Moving item should not take space in list

#### Actual Behavior

There is a small white space in list

Contributor guide

Open the contributing guide

Research direction

Start with the linked StackBlitz reproduction and inspect the Angular CDK drag-and-drop behavior around the .cdk-drag-placeholder rule. Confirm how display:none is handled while moving an item, then verify that the item no longer leaves white space in the list.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, css, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.