For some reason in Angular 9 placing a CDK drag on a mat dialog title div it will make the entire dialog draggable. This will prevent users from selecting text within the dialog box.
In Angular 7 you could only drag the dialog by actually dragging the div that you placed the cdk drag property in.
Is there any way to make the drag action happen only on the title of a mat dialog in Angular 9?
<h1 mat-dialog-title cdkDrag cdkDragRootElement=".cdk-overlay-pane" cdkDragHandle>
<mat-icon>drag_handle</mat-icon>
{{title}}
</h1>
<div mat-dialog-content>
<p>{{message}}</p>
</div>
<div mat-dialog-actions>
<button mat-button (click)="onDismiss()">No</button>
<button mat-raised-button color="primary" (click)="onConfirm()">Yes</button>
</div>
I downloaded the code from this site https://onthecode.co.uk/how-to-make-angular-material-dialog-draggable-with-cdkdrag/