diff --git a/frontend/src/components/layout/statusbar.rs b/frontend/src/components/layout/statusbar.rs index 25f993d..56d669a 100644 --- a/frontend/src/components/layout/statusbar.rs +++ b/frontend/src/components/layout/statusbar.rs @@ -88,11 +88,25 @@ pub fn StatusBar() -> impl IntoView { } }; + // Global listener to force blur on touchstart (for iOS "tap outside" closing) + let force_blur = move |_| { + if let Some(doc) = web_sys::window().and_then(|w| w.document()) { + if let Some(active) = doc.active_element() { + // If something is focused, blur it to close dropdowns + let _ = active.dyn_into::().map(|el| el.blur()); + } + } + }; + let _ = window_event_listener(ev::touchstart, force_blur); + view! {
// --- DOWNLOAD SPEED DROPDOWN --- -