Skip to content

fix(cdk/drag-drop): ensure container is registered in addItem #31518

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

Merged
merged 1 commit into from
Jul 11, 2025

Conversation

crisbeto
Copy link
Member

Currently we only sync drop container in the CdkDrag container. These changes move the logic into addItem to ensure that it always happens.

Fixes #31514.

Currently we only sync drop container in the `CdkDrag` container. These changes move the logic into `addItem` to ensure that it always happens.

Fixes angular#31514.
@crisbeto crisbeto requested a review from a team as a code owner July 10, 2025 08:47
@crisbeto crisbeto requested review from mmalerba and wagnermaciel and removed request for a team July 10, 2025 08:47
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Jul 10, 2025
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Jul 11, 2025
@crisbeto crisbeto merged commit a384870 into angular:main Jul 11, 2025
26 of 29 checks passed
@crisbeto
Copy link
Member Author

The changes were merged into the following branches: main, 20.1.x

crisbeto added a commit that referenced this pull request Jul 11, 2025
Currently we only sync drop container in the `CdkDrag` container. These changes move the logic into `addItem` to ensure that it always happens.

Fixes #31514.

(cherry picked from commit a384870)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: cdk/drag-drop target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(CdkDropList): addItem() doesn't register drop container on CdkDrag
2 participants