BlazorWebView drag and drop does not work with MAUI Templates
Nobody has claimed this yet.
- 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
- Create .NET MAUI Blazor App
- Create a draggable element and a dropzone
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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