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(DragDropModule): cdkDragHandle does not work without zonejs #26340

Closed
1 task
phamtienmanh opened this issue Dec 29, 2022 · 2 comments
Closed
1 task

bug(DragDropModule): cdkDragHandle does not work without zonejs #26340

phamtienmanh opened this issue Dec 29, 2022 · 2 comments
Labels
needs triage This issue needs to be triaged by the team

Comments

@phamtienmanh
Copy link

phamtienmanh commented Dec 29, 2022

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

cdkDragHandle does not work if I config BootstrapOptions ngZone: 'noop'

Reproduction

Steps to reproduce:
plz check this stackblitz: https://stackblitz.com/edit/angular-m67jz9?file=src%2Fmain.ts

  1. Change the default platformBrowserDynamic to
    platformBrowserDynamic()
    .bootstrapModule(AppModule, {
    ngZone: 'noop',
    })
    .catch((err) => console.error(err));

Expected Behavior

only an element with cdkDragHandle can be used to drag a CdkDrag instance.

Actual Behavior

I can drag everywhere

Environment

  • Angular: 15.0.0
  • CDK/Material: 15.0.3
  • Browser(s): Chrome Version 108.0.5359.125 (Official Build) (64-bit)
  • Operating System (e.g. Windows, macOS, Ubuntu): Window
@phamtienmanh phamtienmanh added the needs triage This issue needs to be triaged by the team label Dec 29, 2022
@crisbeto
Copy link
Member

crisbeto commented Jan 3, 2023

Covered by #9169.

@crisbeto crisbeto closed this as completed Jan 3, 2023
@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 Feb 3, 2023
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