Closed davidMcneil closed 3 months ago
We use https://github.com/PolyMeilex/rfd to handle the file popup - can you check to see if these work for you?
Interesting, rfd cargo run --example simple
worked fine.
It does not seem to make it to the handler. This does not print anything for file input:
fn app() -> Element {
rsx! {
input {
r#type: "file",
oninput: move |evt| {
info!("file input {:?}", evt);
}
}
input {
r#type: "text",
oninput: move |evt| {
info!("text input {:?}", evt);
}
}
}
}
Looks like this line is blocking dialog.pick_file().into_iter().collect()
. Replacing it with vec![]
at least prevents the app from locking up.
Problem
Clicking "Choose Files" button in
file_upload
example causes app to hang on linux desktop ubuntu 22.04.Steps To Reproduce
cargo run --example file_upload
Expected behavior
Open file dialog. It hangs as if it is waiting for file selection but the file explorer is never opened. Works great on web so maybe some oddity of my OS.
Screenshots
Environment:
master@9888d36
1.77.0
desktop
Questionnaire