Skip to content

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Apr 6, 2024

Fixes that text selection wasn't being disabled when the cdkDrag directive is inside the shadow DOM on Firefox. The issue appears to be that the selectstart event wasn't crossing the shadow boundary so we have to bind it at the shadow root as well.

Fixes #28792.

…firefox

Fixes that text selection wasn't being disabled when the `cdkDrag` directive is inside the shadow DOM on Firefox. The issue appears to be that the `selectstart` event wasn't crossing the shadow boundary so we have to bind it at the shadow root as well.

Fixes angular#28792.
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Apr 6, 2024
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Apr 12, 2024
@crisbeto crisbeto merged commit 42cb25f into angular:main Apr 12, 2024
crisbeto added a commit that referenced this pull request Apr 12, 2024
…firefox (#28835)

Fixes that text selection wasn't being disabled when the `cdkDrag` directive is inside the shadow DOM on Firefox. The issue appears to be that the `selectstart` event wasn't crossing the shadow boundary so we have to bind it at the shadow root as well.

Fixes #28792.

(cherry picked from commit 42cb25f)
@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 13, 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 target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(cdk/drag-drop): DRAG AND DROP SELECTING TEXT WITH SHADOW DOM ENCAPSULATION ON FIREFOX

2 participants