Skip to content

Commit

Permalink
fix(drag-drop): global resize subscription not cleared (#17257)
Browse files Browse the repository at this point in the history
Fixes the viewort resize subscription not being removed when the `DragRef` is destroyed.

Fixes #17255.
  • Loading branch information
crisbeto authored and mmalerba committed Oct 18, 2019
1 parent 1d40ec9 commit f10b222
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cdk/drag-drop/drag-ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ export class DragRef<T = any> {
this._handles = [];
this._disabledHandles.clear();
this._dropContainer = undefined;
this._resizeSubscription.unsubscribe();
this._boundaryElement = this._rootElement = this._placeholderTemplate =
this._previewTemplate = this._nextSibling = null!;
}
Expand Down

0 comments on commit f10b222

Please sign in to comment.