Repository navigation
Closed
Labels
BugSomething isn't workingWindowsawaiting feedbackMore information is required from the requestorinvestigatingThe bug is being investigatedruntimev3
Description
Description
No drag and drop events are triggered on the go side.
To Reproduce
Run dnd example on windows
Expected behaviour
For dnd to work :)
Screenshots
No response
Attempted Fixes
No response
System Details
Wails (v3.0.0-alpha.20) Wails Doctor
# System
┌──────────────────────────────────────────────────────────────────────────────┐
| Name | Windows 10 Pro |
| Version | 2009 (Build: 19045) |
| ID | 22H2 |
| Branding | Windows 10 Pro |
| Platform | windows |
| Architecture | amd64 |
| Go WebView2Loader | true |
| WebView2 Version | 138.0.3351.121 |
| CPU | AMD Ryzen 5 5600X 6-Core Processor |
| GPU 1 | NVIDIA GeForce RTX 3070 (NVIDIA) - Driver: 32.0.15.7652 |
| Memory | 32GB |
└──────────────────────────────────────────────────────────────────────────────┘
# Build Environment
┌───────────────────────────────┐
| Wails CLI | v3.0.0-alpha.20 |
| Go Version | go1.24.5 |
| -buildmode | exe |
| -compiler | gc |
| CGO_ENABLED | 0 |
| GOAMD64 | v1 |
| GOARCH | amd64 |
| GOOS | windows |
└───────────────────────────────┘
# Dependencies
┌────────────────────────────────────────────┐
| NSIS | v3.11 |
| MakeAppx.exe (Windows SDK) | Not Installed |
| MSIX Packaging Tool | Not Installed |
| SignTool.exe (Windows SDK) | Not Installed |
| npm | 10.8.1 |
| |
└───────── * - Optional Dependency ──────────┘
# Checking for issues
SUCCESS No issues found
# Diagnosis
SUCCESS Your system is ready for Wails development!
Need documentation? Run: wails3 docs
♥ If Wails is useful to you or your company, please consider sponsoring the project: wails3 sponsorAdditional context
Likely caused by #4318
Reacted by dosubot
Metadata
Metadata
Assignees
Labels
BugSomething isn't workingWindowsawaiting feedbackMore information is required from the requestorinvestigatingThe bug is being investigatedruntimev3
Activity
github-actions commentedon Aug 9, 2025
👋 Thanks for reporting this issue! To help us investigate, could you please:
wails doctorif not already includedThis will help us resolve your issue much faster. Thank you!
dosubot commentedon Aug 9, 2025
This was a known issue in Wails v3 alpha 19+ on Windows, but it has been fixed in recent updates. Two pull requests—#4259 and #4318—merged in August 2025, addressed broken drag-and-drop event handling, improved dropzone support, and fixed Windows-specific bugs in the Chromium WebView2 integration. The drag-and-drop example and event system were updated, and documentation now covers the new dropzone features and Go-side event handlers.
If you’re still seeing broken drag-and-drop, update to a version of Wails that includes these PRs. For more details, check the events documentation and the drag-and-drop example.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

[-][V3] Drag-and-drop broken on windows on alpha 19+[/-][+][V3] Drag-and-drop broken on windows since alpha 19[/+]itlangzi commentedon Aug 16, 2025
drag-and-drop example not work.
25 remaining items
itlangzi commentedon Sep 23, 2025
v3.0.0-alpha.28
Has wrong value for
WindowDropZoneDroppedat
v3/internal/assetserver/bundledassets/runtime.debug.jsline 630var WindowDropZoneDropped = 49;but found
v3\internal\runtime\desktop\@wailsio\runtime\src\window.tsline 69const WindowDropZoneDropped = 50;this error causes the drag-and-drop not work
e.g.
v3/internal/assetserver/bundledassets/runtime.debug.jsline 630e.g.
v3\internal\runtime\desktop\@wailsio\runtime\src\window.tsline 69leaanthony commentedon Sep 25, 2025
Can you please try the latest alpha release 👍
xob0t commentedon Sep 25, 2025
Still does not work. devtools console logs dropped files, but no logs on the backend.
Tested on alpha 29 with dnd example on windows 10
itlangzi commentedon Sep 26, 2025
v3.0.0-alpha 30
The error still exists
and @wailsio/runtime 3.0.0-alpha.69 does not work either
Recompiling runtime.js from source will work fine.
leaanthony commentedon Sep 27, 2025
@itlangzi - That was the key to the issue - thanks! 🙏 Pipeline fixed and
@wailsio/[email protected]just got publisheditlangzi commentedon Sep 30, 2025
The problem is not solved; it seems that you forgot to include
compiled/main.jswhen building the@wailsio/runtimerelease package, which causeswindow.wails.Window.HandlePlatformFileDropalways beundefinedWXjzcccc commentedon Sep 30, 2025
You are right. That's why dnd example works normally, but it doesn't work in our project. Because we use npm package , and
window.wailsis{}fix: Move HandlePlatformFileDrop to window._wails internal API
chore: Add changelog entry for drag-and-drop fix
fix: Move HandlePlatformFileDrop to window._wails internal API (#4616)
xob0t commentedon Oct 2, 2025
Fixed in alpha 32!
I had to refactor the app to work with WindowDropZoneFilesDropped, as WindowFilesDropped was not working for me anymore.
fix: Move HandlePlatformFileDrop to window._wails internal API (wails…