-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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(@angular/cdk): dragStart event completely blocked within cdkDrag
element
#24533
Comments
In general we don't make changes to accommodate other libraries, because it would be really difficult to support all of the possible combinations. |
It's not only related to third party libraries. You break the native browser's |
The whole point of the |
I've just read #24403 and I do understand your point. BUT: Actually if I use CDK's |
I have found a solution for my problem. Inside a
I still think that the Best regards, |
Currently we block the `dragstart` event on the entire drag element which doesn't account for its disabled state and for any existing handles. Fixes angular#24533.
That makes sense, it's how the |
Currently we block the `dragstart` event on the entire drag element which doesn't account for its disabled state and for any existing handles. Fixes #24533.
…lar#24581) Currently we block the `dragstart` event on the entire drag element which doesn't account for its disabled state and for any existing handles. Fixes angular#24533.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Is this a regression?
The previous version in which this bug was not present was
13.2.3
Description
Inside a Angular's
cdkDropList
I use another third party library for sorting a grid (display:flex; flex-wrap:wrap
) with Drag'n'Drop. After upgrading Angular's CDK from version 13.2.3 to 13.2.4 this third party component stopped working.After some detailed research I've found the root cause in cdk/drag-drop/drag-ref.ts:
With this added line you'll break the
dragstart
event, what makes it impossible to use any other drag'n'drop functionality within CDK's Drag'n'Drop functionality.Reproduction
No steps to reproduce.
Expected Behavior
The
dragstart
event should still be fired within ancdkDrag
element.Actual Behavior
dragstart
event is completely blocked withevent.preventDefault()
, which makes it absolutely impossible to use Angular's Drag'n'Drop functionality with custom or even native Drag'n'Drop functionality inside.Environment
The text was updated successfully, but these errors were encountered: