fix(frontend): add touch event handlers for ios dropdowns
This commit is contained in:
@@ -117,10 +117,8 @@ pub fn StatusBar() -> impl IntoView {
|
||||
<Show when=move || down_menu_open.get() fallback=|| ()>
|
||||
<div
|
||||
class="fixed inset-0 z-[99] bg-black/0 cursor-default"
|
||||
on:click=move |e| {
|
||||
e.stop_propagation();
|
||||
set_down_menu_open.set(false);
|
||||
}
|
||||
on:click=move |e| { e.stop_propagation(); set_down_menu_open.set(false); }
|
||||
on:touchend=move |e| { e.stop_propagation(); set_down_menu_open.set(false); }
|
||||
></div>
|
||||
</Show>
|
||||
|
||||
@@ -172,10 +170,8 @@ pub fn StatusBar() -> impl IntoView {
|
||||
<Show when=move || up_menu_open.get() fallback=|| ()>
|
||||
<div
|
||||
class="fixed inset-0 z-[99] bg-black/0 cursor-default"
|
||||
on:click=move |e| {
|
||||
e.stop_propagation();
|
||||
set_up_menu_open.set(false);
|
||||
}
|
||||
on:click=move |e| { e.stop_propagation(); set_up_menu_open.set(false); }
|
||||
on:touchend=move |e| { e.stop_propagation(); set_up_menu_open.set(false); }
|
||||
></div>
|
||||
</Show>
|
||||
|
||||
@@ -225,10 +221,8 @@ pub fn StatusBar() -> impl IntoView {
|
||||
<Show when=move || theme_open.get() fallback=|| ()>
|
||||
<div
|
||||
class="fixed inset-0 z-[99] bg-black/0 cursor-default"
|
||||
on:click=move |e| {
|
||||
e.stop_propagation();
|
||||
set_theme_open.set(false);
|
||||
}
|
||||
on:click=move |e| { e.stop_propagation(); set_theme_open.set(false); }
|
||||
on:touchend=move |e| { e.stop_propagation(); set_theme_open.set(false); }
|
||||
></div>
|
||||
</Show>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user