Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(COMPONENT): cdkDragHandle not work in mat-table td #30111

Closed
1 task done
xylplm opened this issue Dec 1, 2024 · 2 comments
Closed
1 task done

bug(COMPONENT): cdkDragHandle not work in mat-table td #30111

xylplm opened this issue Dec 1, 2024 · 2 comments
Labels
needs triage This issue needs to be triaged by the team

Comments

@xylplm
Copy link

xylplm commented Dec 1, 2024

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

My table rows can be dragged. But I don't want the entire row to trigger dragging. Use cdkDragHandle to specify a drag button on td to achieve row dragging.
But cdkDragHandle did not take effect, and now the entire row can still trigger dragging。

Reproduction

StackBlitz link: https://stackblitz.com/edit/w368zz?file=src%2Fexample%2Ftable-basic-example.html
Steps to reproduce:
1.
2.

Expected Behavior

Only buttons can be dragged, other positions in the row cannot be dragged

Actual Behavior

Both rows and buttons can trigger dragging

Environment

  • Angular:18/19
  • CDK/Material:18/19
  • Browser(s):edge
  • Operating System (e.g. Windows, macOS, Ubuntu):win11
@xylplm xylplm added the needs triage This issue needs to be triaged by the team label Dec 1, 2024
@crisbeto
Copy link
Member

crisbeto commented Dec 3, 2024

Duplicate of #29475.

@crisbeto crisbeto closed this as completed Dec 3, 2024
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jan 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs triage This issue needs to be triaged by the team
Projects
None yet
Development

No branches or pull requests

2 participants