Closed
Description
Description
CDK Drag and Drop allows to reorder rows within material table however it is not possible to restrict the reordering only using drag handle icon.
Reproduction
StackBlitz link: https://stackblitz.com/edit/vaeujs-yrvig8?file=src%2Fexample%2Fcdk-drag-drop-table-example.html
Steps to reproduce:
- Open drag and drop on table rows example from here https://material.angular.io/cdk/drag-drop/examples#cdk-drag-drop-table
- Add
cdkDragHandle
to first cell defmat-icon
Expected Behavior
Row should only be dragged using the icon.
Actual Behavior
Rows can be dragged from anywhere within that row.
Environment
- Angular: 18.1
- CDK/Material: 18.1
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): macOS