Skip to content

fix(cdk/drag-drop): incorrect type DragConstrainPosition #30510

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

Merged
merged 5 commits into from
Feb 21, 2025

Conversation

Veribelll
Copy link
Contributor

Fixes type DragConstrainPosition, which of сorrect configuration of CdkDrag is not possible when using in providers

Fixes #30509

@Veribelll Veribelll marked this pull request as ready for review February 18, 2025 10:17
@Veribelll Veribelll requested a review from a team as a code owner February 18, 2025 10:17
@Veribelll Veribelll requested review from crisbeto and wagnermaciel and removed request for a team February 18, 2025 10:17
@Veribelll Veribelll force-pushed the fix-cdk-drag-constrain-position-type branch from d775412 to 7ca6ef5 Compare February 18, 2025 10:44
Fixes type DragConstrainPosition, which of сorrect configuration of CdkDrag  is not possible when using in providers

Fixes angular#30509
@Veribelll Veribelll force-pushed the fix-cdk-drag-constrain-position-type branch from 7ca6ef5 to 0abfecd Compare February 18, 2025 10:48
…Position

Impot the type from the configuration CdkDrag for input cdkDragConstrainPosition,  which leads to type safety.
Impot the type from the configuration CdkRef for property constrainPosition, which leads to type safety.
@Veribelll Veribelll requested a review from crisbeto February 18, 2025 12:38
@crisbeto
Copy link
Member

Looks like the API goldens still need to be updated.

DragConstrainPosition type should be in the documentation
@Veribelll
Copy link
Contributor Author

Forgot to add DragConstrainPosition in public api. Done.

@crisbeto crisbeto removed the request for review from wagnermaciel February 21, 2025 07:37
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release labels Feb 21, 2025
@crisbeto crisbeto merged commit 69eedd7 into angular:main Feb 21, 2025
18 of 22 checks passed
@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 Mar 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: cdk/drag-drop target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(cdk/drag-drop): Type DragConstrainPosition does not match @Input('cdkDragConstrainPosition') in CdkDrag
2 participants