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

fix(drag-drop): allow handle to be set on drag element if there is a different drag root #19559

Merged
merged 1 commit into from
Jul 8, 2020

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Jun 7, 2020

Currently we only allow the drag handle to be a descendant of the drag element, but this can be inconvenient if the drag root is moved further up the DOM using cdkDragRootElement. These changes allow for a handle to be set on the drag element itself, if it has an alternate drag root.

Fixes #19555.

@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release labels Jun 7, 2020
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jun 7, 2020
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

@jelbourn jelbourn added lgtm action: merge The PR is ready for merge by the caretaker labels Jun 8, 2020
@jelbourn
Copy link
Member

@crisbeto passes presubmit, just needs rebase

@crisbeto crisbeto force-pushed the 19555/drag-drop-self-handle branch from 5b7d03e to f9c3fb3 Compare June 29, 2020 16:39
@crisbeto
Copy link
Member Author

Rebased.

@jelbourn
Copy link
Member

@crisbeto after rebase it looks like integration_tests have a failure

@crisbeto crisbeto force-pushed the 19555/drag-drop-self-handle branch from f9c3fb3 to 7b5ca5f Compare July 1, 2020 17:38
…different drag root

Currently we only allow the drag handle to be a descendant of the drag element, but this can be inconvenient if the drag root is moved further up the DOM using `cdkDragRootElement`. These changes allow for a handle to be set on the drag element itself, if it has an alternate drag root.

Fixes angular#19555.
@crisbeto crisbeto force-pushed the 19555/drag-drop-self-handle branch from 7b5ca5f to bfa8941 Compare July 1, 2020 17:49
@crisbeto crisbeto requested a review from a team as a code owner July 1, 2020 17:49
@crisbeto
Copy link
Member Author

crisbeto commented Jul 1, 2020

Fixed the size failure.

@mmalerba
Copy link
Contributor

mmalerba commented Jul 8, 2020

@googlebot

@mmalerba mmalerba added target: minor This PR is targeted for the next minor release and removed target: patch This PR is targeted for the next patch release labels Jul 8, 2020
@mmalerba mmalerba merged commit 2335571 into angular:master Jul 8, 2020
@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 Aug 8, 2020
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 cla: yes PR author has agreed to Google's Contributor License Agreement P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent 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(drag-drop): cdk-overlay-pane is not scrollable
5 participants