-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(cdk/drag-drop): throw if drop list or handle are set on a non-element node #20668
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
Conversation
f877ea3
to
9dd5b78
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@crisbeto If I understand
So this is specifically checking for if |
The |
So VE (maybe just some...?) IVY What is the purpose? |
It'll always be true for VE and in Ivy it'll get replaced to |
Ah, okay. So Thanks for the response. |
…ment node Currently if a `cdkDropList` or `cdkDragHandle` is attached to a non-element node, a cryptic error is thrown. These changes add a proper error, similar to the one we have on `cdkDrag`. Fixes angular#13540.
9dd5b78
to
36c1290
Compare
I left in some invalid code in the `drag-drop` demo while working on angular#20668 which is throwing an error now.
I left in some invalid code in the `drag-drop` demo by accident while working on angular#20668 which is throwing an error now.
I left in some invalid code in the `drag-drop` demo by accident while working on #20668 which is throwing an error now.
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. |
Currently if a
cdkDropList
orcdkDragHandle
is attached to a non-element node, a cryptic error is thrown. These changes add a proper error, similar to the one we have oncdkDrag
.Fixes #13540.