Skip to content

bug(CDK - cdkDragPreview): SVG masks are not shown in the drag preview #20720

Closed
@BuZZ-dEE

Description

@BuZZ-dEE

Expected Behavior

I expect to see the applied SVG mask in the drag preview.

Actual Behavior

The element drag preview without the applied SVG mask.

The problem

It seems that the dragged element with SVG mask definition is set to display:none;, also there seems to be a clone without the mask id the in DOM.
For that reason the SVG mask is not found and not applied in the drag preview.

Environment

  • Angular: v10.1.4
  • CDK/Material: v10.2.3
  • Browser(s): all
  • Operating System (e.g. Windows, macOS, Ubuntu): all

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/drag-drop

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions