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(cdk/drag-drop): reset pointer events on descendants #29370

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Jul 3, 2024

When we create the preview and placeholder, we set pointer-events: none on them so they don't interfere with the elementFromPoint calls, however descendants of the element could be resetting it back to auto for themselves. These changes update the reset to prevent it from happening.

@crisbeto crisbeto added G This is is related to a Google internal issue target: patch This PR is targeted for the next patch release merge: preserve commits When the PR is merged, a rebase and merge should be performed labels Jul 3, 2024
@crisbeto crisbeto requested a review from a team as a code owner July 3, 2024 07:11
@crisbeto crisbeto requested review from amysorto, mmalerba and andrewseguin and removed request for a team July 3, 2024 07:11
When we create the preview and placeholder, we set `pointer-events: none` on them so they don't interfere with the `elementFromPoint` calls, however descendants of the element could be resetting it back to `auto` for themselves. These changes update the reset to prevent it from happening.
@crisbeto crisbeto changed the title Tab header drag&drop fixes fix(cdk/drag-drop): reset pointer events on descendants Jul 3, 2024
@crisbeto crisbeto removed the merge: preserve commits When the PR is merged, a rebase and merge should be performed label Jul 3, 2024
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Jul 3, 2024
@crisbeto crisbeto merged commit bfa3ac5 into angular:main Jul 4, 2024
22 of 24 checks passed
crisbeto added a commit that referenced this pull request Jul 4, 2024
When we create the preview and placeholder, we set `pointer-events: none` on them so they don't interfere with the `elementFromPoint` calls, however descendants of the element could be resetting it back to `auto` for themselves. These changes update the reset to prevent it from happening.

(cherry picked from commit bfa3ac5)
crisbeto added a commit that referenced this pull request Jul 4, 2024
When we create the preview and placeholder, we set `pointer-events: none` on them so they don't interfere with the `elementFromPoint` calls, however descendants of the element could be resetting it back to `auto` for themselves. These changes update the reset to prevent it from happening.

(cherry picked from commit bfa3ac5)
@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 4, 2024
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 G This is is related to a Google internal issue target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants