dotnet / dotnet/aspnetcore

Blazor setDragImage with Drag & Drop

Open
#45,499 4 comments 3 reactions 0 assignees View on GitHub
area-blazor enhancement
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

Is there any intention of implementing `e.dataTransfer.setDragImage` in blazor (wasm)? The only issue related to this problem I found does not have a solution or workaround #33158.

`setDragImage` is used in js to change the object you are dragging, see [mozilla.org](https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API#define_the_drag_image)

### Describe the solution you'd like

Extend the `DragEventArgs` class with the js function `setDragImage`

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.