-
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
cdk-drop-list-dragging not removed when exiting drop area #15233
Comments
I wasn't able to reproduce the issue here. Note that the item is still considered part of a drop list until it gets dragged into a different list. |
I'm getting error all time here
|
d&d is not working very well with |
…ent with OnPush Fixes the dragged styling not being removed from a drop container, which is wrapped inside a component with `OnPush` change detection, when an item is dragged into a connected container. Fixes angular#15233.
…ent with OnPush Fixes the dragged styling not being removed from a drop container, which is wrapped inside a component with `OnPush` change detection, when an item is dragged into a connected container. Fixes angular#15233.
…ent with OnPush Fixes the dragged styling not being removed from a drop container, which is wrapped inside a component with `OnPush` change detection, when an item is dragged into a connected container. Fixes angular#15233.
…ent with OnPush Fixes the dragged styling not being removed from a drop container, which is wrapped inside a component with `OnPush` change detection, when an item is dragged into a connected container. Fixes angular#15233.
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. |
Bug, feature request, or proposal:
Bug
What is the expected behavior?
Cdk-drop-list-dragging class should be removed when the pointer leaves the target container area.
When the dragged element is dropped outside a target container after passing over it should return the source container as result
What is the current behavior?
I'm implementing a drag & drop from one container to multiple drop areas: when entering these areas I want to highlight these areas by using cdk-drop-list-dragging class, but once exiting one area, the class is not removed. Also, I've noticed that dropping an element outiside a drop area, the element gets assigned to last visited drop area, even if pointer is not there anymore.
What are the steps to reproduce?
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.2.4",
"@angular/cdk": "^7.3.2",
"@angular/common": "^7.2.4",
"@angular/compiler": "^7.2.4",
"@angular/compiler-cli": "^7.2.4",
"@angular/core": "^7.2.4",
"@angular/fire": "^5.1.1",
"@angular/forms": "^7.2.4",
"@angular/http": "^7.2.4",
"@angular/material": "^7.3.2",
"@angular/platform-browser": "^7.2.4",
"@angular/platform-browser-dynamic": "^7.2.4",
"@angular/platform-server": "^7.2.4",
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: