-
-
Notifications
You must be signed in to change notification settings - Fork 826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dropping files (ondrop
) doesn't work on Windows
#2954
Comments
@matthunz Yeah, IIRC I reported an issue with file dropping on Windows when the Tauri project was in early stages, not sure on which repo though, I couldn't find the issue or if it was solved.. EDIT: I think it was this, but it's a different problem: tauri-apps/tao#62 |
I can verify that this does not work on Windows 10, Dioxus main. |
@DogeDark Do you think it's a tao issue? |
@Boscop I'm unsure. I only tested to verify the issue. |
Apparently it's not a tao/wry issue: tauri-apps/tao#986 (comment)
So it must be a dioxus issue then.. |
I did some digging and it seems like |
@DogeDark Hm, what do you mean by "If we remove it, our event handlers get called correctly but we rely on Shouldn't the HTML drag/drop events be working in conjunction with / backed by |
@Boscop We have a JavaScript shim that is called by Dioxus to create event listeners and when |
I found that here dioxus/packages/desktop/src/webview.rs Line 233 in 9ffd4b8
And about this:
Why doesn't it set the value? :) |
@Boscop It does, it's just with the drop handler, the HTML events don't get called. Without the drop handler, the HTML events work fine except panics because the drop handler was expected to have set the most recent file: dioxus/packages/desktop/src/webview.rs Line 99 in 9ffd4b8
Most likely related: tauri-apps/wry#904 I'm looking into creating a solution. |
Ah.. |
Problem
Dropping files (
ondrop
) doesn't work on Windows, the even doesn't seem to get triggered.Steps To Reproduce
Steps to reproduce the behavior:
cargo r --example file_upload
Expected behavior
It should load the file just like when opening it by clicking on the file input and selecting it through the file dialog.
Screenshots
Environment:
main
branch, commitb20db13e84227b76741e007b2763adc8237ada48
rustc 1.82.0-nightly (8b3870784 2024-08-07)
The text was updated successfully, but these errors were encountered: