Skip to content

cdk-drop-list: not add class .cdk-drop-list-dragging to CdkDropList container #13680

Closed
@quangquy87

Description

@quangquy87

Bug, feature request, or proposal:

Bug

What is the expected behavior?

What is the current behavior?

I tried add ChangeDetectionStrategy.OnPush into component, cdk-drop not insert class .cdk-drop-list-dragging to CdkDropList container

What are the steps to reproduce?

Providing a StackBlitz reproduction is the best way to share your issue.

StackBlitz starter: https://stackblitz.com/edit/angular-xwyhj3?file=app/cdk-drag-drop-sorting-example.ts

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

"@angular/animations": "^7.0.0",
"@angular/cdk": "^7.0.0",
"@angular/common": "^7.0.0",
"@angular/compiler": "^7.0.0",
"@angular/core": "^7.0.0",
"@angular/forms": "^7.0.0",
"@angular/http": "^7.0.0",
"@angular/material": "^7.0.0",
"@angular/material-moment-adapter": "^7.0.0",
"@angular/platform-browser": "^7.0.0",
"@angular/platform-browser-dynamic": "^7.0.0",
"@angular/router": "^7.0.0",
"angular-in-memory-web-api": "^0.6.1",
"core-js": "^2.5.7",
"hammerjs": "^2.0.8",
"moment": "^2.22.2",
"rxjs": "^6.3.3",
"web-animations-js": "^2.3.1",
"zone.js": "^0.8.26"

Is there anything else we should know?

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions