fix(ui): resolve iOS dropdown backdrop click issue
This commit is contained in:
@@ -116,9 +116,9 @@ 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"
|
||||
class="fixed inset-0 z-[99] bg-black/0 cursor-pointer"
|
||||
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); }
|
||||
on:touchstart=move |e| { e.stop_propagation(); set_down_menu_open.set(false); }
|
||||
></div>
|
||||
</Show>
|
||||
|
||||
@@ -169,9 +169,9 @@ 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"
|
||||
class="fixed inset-0 z-[99] bg-black/0 cursor-pointer"
|
||||
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); }
|
||||
on:touchstart=move |e| { e.stop_propagation(); set_up_menu_open.set(false); }
|
||||
></div>
|
||||
</Show>
|
||||
|
||||
@@ -220,9 +220,9 @@ pub fn StatusBar() -> impl IntoView {
|
||||
|
||||
<Show when=move || theme_open.get() fallback=|| ()>
|
||||
<div
|
||||
class="fixed inset-0 z-[99] bg-black/0 cursor-default"
|
||||
class="fixed inset-0 z-[99] bg-black/0 cursor-pointer"
|
||||
on:click=move |e| { e.stop_propagation(); set_theme_open.set(false); }
|
||||
on:touchend=move |e| { e.stop_propagation(); set_theme_open.set(false); }
|
||||
on:touchstart=move |e| { e.stop_propagation(); set_theme_open.set(false); }
|
||||
></div>
|
||||
</Show>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user