Skip to content

Commit

Permalink
fix drag-drop undefined error
Browse files Browse the repository at this point in the history
Good explanation of what's going on at
angular#15948 (comment).

Fixes angular#15948
  • Loading branch information
jeanbza committed Feb 6, 2020
1 parent 173f5fa commit 04f26b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cdk/drag-drop/drag-ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,9 @@ export class DragRef<T = any> {
/** Sets the container that the item is part of. */
_withDropContainer(container: DropListRef) {
this._dropContainer = container;
if (!this._initialContainer) {
this._initialContainer = container;
}
}

/**
Expand Down

0 comments on commit 04f26b4

Please sign in to comment.