[bug] Drag-and-Drop doesn't handled properly on Linux #9725
Labels
status: needs triage
This issue needs to triage, applied to new issues
status: upstream
This issue is blocked by upstream dependencies and we need to wait or contribute upstream fixes
type: bug
Describe the bug
As far as we know, by default, Tauri handles drag-n-drop via its own
tauri://drop
and related events.While in Linux (both Ubuntu 22.04 and 24.04), once a file is dropped onto the window, an
tauri://drag-cancelled
is emitted instead, and the webview is unexpectedly navigated to the dropped file.Reproduction
Link: https://github.com/xingrz/tauri-v2-drag-n-drop
Console
tab. EnablePreserve Log
As its shown in the screenshot below,
tauri://drag-cancelled
is emitted, and the webview is navigated to the file (package.json
) just dropped.Expected behavior
A
tauri://drop
should be emitted. In the above minimal reproduction, size of the dropped file is displayed.Full
tauri info
outputStack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: