Skip to content

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

@XavierDupessey

Description

@XavierDupessey

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Hello,

There is a problem with Drag and Drop examples from https://material.angular.io/cdk/drag-drop/overview when a parent component is encapsulated with Shadow DOM on Firefox: it selects text of other elements (cf video).

dnd.mp4

I tested it with the "Drag&Drop connected sorting" example from version 14 to 17.
The bug exists in all versions (I did not try older versions).

Thank you,
Xavier

Reproduction

StackBlitz link (under v14): https://stackblitz.com/edit/gszzna?file=src%2Fapp%2Fcdk-drag-drop-connected-sorting-example.ts
Steps to reproduce:

  1. Drag and drop the last item from the Left list to the Right list

Expected Behavior

Drag and dropping an item should not select text.

Actual Behavior

Drag and dropping an item selects text.

Environment

  • Angular: at least all versions from 14 to 17
  • CDK/Material: at least all versions from 14 to 17
  • Browser(s): Firefox 124.0.1 (64 bits) (latest version)
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows 11

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsarea: cdk/drag-dropfirefoxThis issue is specific to the Firefox browser

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions