fix(drag-drop): standalone draggable drag class not being applied with OnPush change detection (#14727)

Fixes the styling that is applied while an item is dragged not being applied with `OnPush` change detection.
This commit is contained in:
Kristiyan Kostadinov
2019-02-07 20:55:02 +01:00
committed by Jeremy Elbourn
parent 456a0893d8
commit 8ddcb5ba20
3 changed files with 52 additions and 9 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ export declare class CdkDrag<T = any> implements AfterViewInit, OnChanges, OnDes
constructor(
element: ElementRef<HTMLElement>,
dropContainer: CdkDropList, _document: any, _ngZone: NgZone, _viewContainerRef: ViewContainerRef, viewportRuler: ViewportRuler, dragDropRegistry: DragDropRegistry<DragRef, DropListRef>, config: DragRefConfig, _dir: Directionality,
dragDrop?: DragDrop);
dragDrop?: DragDrop, _changeDetectorRef?: ChangeDetectorRef | undefined);
getPlaceholderElement(): HTMLElement;
getRootElement(): HTMLElement;
ngAfterViewInit(): void;