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=|| ()>
|
<Show when=move || down_menu_open.get() fallback=|| ()>
|
||||||
<div
|
<div
|
||||||
class="fixed inset-0 z-[99] bg-black/0 cursor-default"
|
class="fixed inset-0 z-[99] bg-black/0 cursor-default"
|
||||||
on:click=move |e| {
|
on:click=move |e| { e.stop_propagation(); set_down_menu_open.set(false); }
|
||||||
e.stop_propagation();
|
on:touchend=move |e| { e.stop_propagation(); set_down_menu_open.set(false); }
|
||||||
set_down_menu_open.set(false);
|
|
||||||
}
|
|
||||||
></div>
|
></div>
|
||||||
</Show>
|
</Show>
|
||||||
|
|
||||||
@@ -172,10 +170,8 @@ pub fn StatusBar() -> impl IntoView {
|
|||||||
<Show when=move || up_menu_open.get() fallback=|| ()>
|
<Show when=move || up_menu_open.get() fallback=|| ()>
|
||||||
<div
|
<div
|
||||||
class="fixed inset-0 z-[99] bg-black/0 cursor-default"
|
class="fixed inset-0 z-[99] bg-black/0 cursor-default"
|
||||||
on:click=move |e| {
|
on:click=move |e| { e.stop_propagation(); set_up_menu_open.set(false); }
|
||||||
e.stop_propagation();
|
on:touchend=move |e| { e.stop_propagation(); set_up_menu_open.set(false); }
|
||||||
set_up_menu_open.set(false);
|
|
||||||
}
|
|
||||||
></div>
|
></div>
|
||||||
</Show>
|
</Show>
|
||||||
|
|
||||||
@@ -225,10 +221,8 @@ pub fn StatusBar() -> impl IntoView {
|
|||||||
<Show when=move || theme_open.get() fallback=|| ()>
|
<Show when=move || theme_open.get() fallback=|| ()>
|
||||||
<div
|
<div
|
||||||
class="fixed inset-0 z-[99] bg-black/0 cursor-default"
|
class="fixed inset-0 z-[99] bg-black/0 cursor-default"
|
||||||
on:click=move |e| {
|
on:click=move |e| { e.stop_propagation(); set_theme_open.set(false); }
|
||||||
e.stop_propagation();
|
on:touchend=move |e| { e.stop_propagation(); set_theme_open.set(false); }
|
||||||
set_theme_open.set(false);
|
|
||||||
}
|
|
||||||
></div>
|
></div>
|
||||||
</Show>
|
</Show>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user