Skip to content

bug(Drag and Drop CDK): Drag and Drop not working across Tabs in a MatTabGroup #30952

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

Open
1 task
Manish-Pradhan-FP opened this issue Apr 24, 2025 · 0 comments
Open
1 task
Labels
needs triage This issue needs to be triaged by the team

Comments

@Manish-Pradhan-FP
Copy link

Manish-Pradhan-FP commented Apr 24, 2025

2025-04-24_15-46-44.mp4

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

I am trying to drag and drop something across Tabs. I have used cdkDropListConnectedTo to connect the different droplists that exist on the different Tabs. I am using a custom directive to activate a Tab when you hover over the Tab Label while dragging.

Image

Reproduction

StackBlitz link: https://stackblitz.com/edit/8hxqhzyg-rdoxrwhp?file=package.json
Steps to reproduce:

  1. Drag and row to a different Tab first and then down to the Droplist container surrounded by a red border.
  2. When I inspect I can see that the Droplist correctly gets a class of cdk-drop-list-receiving which tells me they are correctly connected but it does not detect the drag over.

Expected Behavior

I should be able to drop the dragged element on any connected DropList even though it lives within a different Tab

Actual Behavior

I am not able to drop the dragged element on the DropList even though its connected.

Environment

  • Angular: 19.2.0
  • CDK/Material: 19.2.0
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Win 11
@Manish-Pradhan-FP Manish-Pradhan-FP added the needs triage This issue needs to be triaged by the team label Apr 24, 2025
@Manish-Pradhan-FP Manish-Pradhan-FP changed the title bug(COMPONENT): TITLE Drag and Drop not working across Mat Tabs bug(Drag and Drop CDK): Drag and Drop not working across Tabs in a MatTabGroup Apr 24, 2025
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