fix(frontend): add touchstart handler to theme backdrop for ios compatibility

This commit is contained in:
spinline
2026-02-01 18:22:43 +03:00
parent 928e18576d
commit ea00a39595

View File

@@ -49,10 +49,11 @@ pub fn StatusBar() -> impl IntoView {
<Show when=move || theme_open.get() fallback=|| ()> <Show when=move || theme_open.get() fallback=|| ()>
// Backdrop to close on outside click // Backdrop to close on outside click
<div <div
class="fixed inset-0 z-[99] cursor-default" class="fixed inset-0 z-[99] cursor-pointer bg-black/0"
role="button" role="button"
tabindex="-1" tabindex="-1"
on:click=move |_| set_theme_open.set(false) on:click=move |_| set_theme_open.set(false)
on:touchstart=move |_| set_theme_open.set(false)
></div> ></div>
</Show> </Show>