-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentneeds: clarificationThe issue does not contain enough information for the team to determine if it is a real bugThe issue does not contain enough information for the team to determine if it is a real bugtroubleshootingThis issue is not reporting an issue, but just asking for helpThis issue is not reporting an issue, but just asking for help
Description
What are you trying to do?
I setup the drag drop functionality for angular cdk and everything works fine functionality wise. But it throws this error Unable to preventDefault inside passive event listener invocation.
on drag-ref.ts:655. This only happens when actually moving the item, if you are just holding the drag nothing is thrown. This error only appears in production. Any help would be appreciated on this.
What troubleshooting steps have you tried?
- Tried disabling pointer events when dragging
- Tried updating to most recent minor version
Reproduction
<div class="scrollable-container" #productsList="cdkDropList" cdkDropList (cdkDropListDropped)="drop($event)">
<div *ngFor="let product of availableProducts | search : 'name' : productSearch">
<div
cdkDrag
(cdkDragStarted)="dragStart(product)"
class="product-item"
>
<div class="product-list-detail">
<h5 class="p-mb-2">{{product.name}}</h5>
<span class="product-category">{{product.active ? 'Active' : 'Inactive'}}</span>
</div>
<div class="product-list-action">
<h6>{{product.price}}</h6>
</div>
</div>
</div>
</div>```
### Environment
- Angular: 11.0.9
- CDK/Material: 11.2.12 (and 11.0.9).
- Browser(s): Brave, Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Ubuntu, Windows
webcat12345, kasaharu and BenRacicot
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentneeds: clarificationThe issue does not contain enough information for the team to determine if it is a real bugThe issue does not contain enough information for the team to determine if it is a real bugtroubleshootingThis issue is not reporting an issue, but just asking for helpThis issue is not reporting an issue, but just asking for help