Skip to content
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

bug(drag-drop): cdkDropListSortPredicate doesn't work if dragging item enter from top #30239

Open
1 task
yuwu9145 opened this issue Dec 27, 2024 · 0 comments
Open
1 task
Labels
needs triage This issue needs to be triaged by the team

Comments

@yuwu9145
Copy link

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

cdkDropListSortPredicate doesn't work in certain senarios

Reproduction

StackBlitz link: https://stackblitz.com/edit/z6ffpx7e-wg8uidxw?file=src%2Fexample%2Fcdk-drag-drop-connected-sorting-group-example.html
Steps to reproduce:

  1. Open StackBlitz reproduction link
  2. The code has cdkDropListSortPredicate applied to "Done" dropzone, the intention is preventing item being dragged to the first index
  3. Drag item from "To do" zone and enter "Done" zone from top

Image

Expected Behavior

Item cannot be dragged & dropped to the first index in "Done"

Actual Behavior

Item can be dragged & dropped to the first index in "Done"

Environment

  • Angular: 19.0.0
  • CDK/Material: 19.0.0
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows
@yuwu9145 yuwu9145 added the needs triage This issue needs to be triaged by the team label Dec 27, 2024
@yuwu9145 yuwu9145 changed the title bug(drag-drop): cdkDropListSortPredicate sometimes doesn't work bug(drag-drop): cdkDropListSortPredicate doesn't work if dragging item enter from top Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue needs to be triaged by the team
Projects
None yet
Development

No branches or pull requests

1 participant