Skip to content

refactor(cdk/drag-drop): Correctly type drag handle parent drag witho… #24664

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

Closed
wants to merge 1 commit into from

Conversation

Achilles1515
Copy link

…ut circular dependencies warning

Import the CdkDrag directive reference as a type-only import to avoid the circular dependency warning.

…ut circular dependencies warning

Import the `CdkDrag` directive reference as a type-only import to avoid the circular dependency warning.
@Achilles1515
Copy link
Author

@andrewseguin
I struggled enormously rebasing that branch that I guess I had deleted...idk. I ended up just making this new pull request.

Old issue with conversation:
#20757

@@ -18,6 +18,7 @@ import {
SkipSelf,
} from '@angular/core';
import {Subject} from 'rxjs';
import type {CdkDrag} from './drag';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I remember correctly, we aren't allowed to use type imports because the internal JS tooling can't handle them.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've confirmed that we can't use type-only imports and exports, because Closure doesn't know how to handle them. I've also submitted #24678 to lint against it automatically.

@andrewseguin
Copy link
Contributor

@Achilles1515 It's been a few weeks since a response after the review - do you still want to land this?

@andrewseguin andrewseguin added the needs: clarification The issue does not contain enough information for the team to determine if it is a real bug label Apr 14, 2022
@Achilles1515
Copy link
Author

@andrewseguin According to the review comments from @crisbeto we can't.
So either some larger discussion happens about allowing type imports or I guess this issue just gets closed.

@andrewseguin
Copy link
Contributor

Bummer - sorry about that. Thanks for attempting to make the improvement

@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 May 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: clarification The issue does not contain enough information for the team to determine if it is a real bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants