dotnet / dotnet/maui

BlazorWebView drag and drop does not work with MAUI Templates

Open
#2,205 96 comments 24 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-blazor blocked discussed external partner/webview2 Priority:1 t/enhancement ☀️
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 14h
Merged PRs (30d)
296

Description

Description

When using MAUI with blazor template add a draggable component. Long press will recognize you are attempting to drag but no functionality is present.

Steps to Reproduce
  1. Create .NET MAUI Blazor App
  2. Create a draggable element and a dropzone
  3. Attempt to drag the draggable object to the dropzone
Expected Behavior

It should allow you to drag an element as it does on a browser.

Actual Behavior

OnDragStart fires but no actual functionality is present.

Basic Information
  • Version with issue: Preview 6 and 7

  • Last known good version: None

  • IDE: Visual Studio 2022 Preview 3.1

  • Platform Target Frameworks:

    • iOS: Untested
    • Android: Android 11 API 30 local device and Android 9 API 28 emulated
    • UWP: Untested
  • Nuget Packages:

  • Affected Devices: Physical and emulated

Screenshots
Reproduction Link
Workaround
Depends on

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the drag-and-drop scenario in a .NET MAUI Blazor App on the listed Android targets, then trace the BlazorWebView drag-event path. Check the linked WebView2Feedback and Microsoft UI XAML issues first; done means dragging reaches the dropzone with behavior equivalent to a browser rather than stopping after OnDragStart.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.