Fix erros in counter-isomorphic with stable

This commit is contained in:
Matt Crane 2022-12-24 12:13:35 -08:00
parent c24958bec4
commit 587a85baaf
3 changed files with 5 additions and 5 deletions

View file

@ -228,7 +228,7 @@ pub fn MultiuserCounter(cx: Scope) -> Element {
<div>
<button on:click=move |_| clear.dispatch(())>"Clear"</button>
<button on:click=move |_| dec.dispatch(())>"-1"</button>
<span>"Multiplayer Value: " {move || multiplayer_value().unwrap_or_default().to_string()}</span>
<span>"Multiplayer Value: " {move || multiplayer_value.get().unwrap_or_default().to_string()}</span>
<button on:click=move |_| inc.dispatch(())>"+1"</button>
</div>
</div>

View file

@ -134,7 +134,7 @@ where
cfg_if! {
if #[cfg(feature = "stable")] {
let on_submit = move |ev: web_sys::Event| on_submit(ev.unchecked_into());
let on_submit = move |ev: web_sys::SubmitEvent| on_submit(ev.unchecked_into());
}
};
@ -307,7 +307,7 @@ where
cfg_if! {
if #[cfg(feature = "stable")] {
let on_submit = move |ev: web_sys::Event| on_submit(ev.unchecked_into());
let on_submit = move |ev: web_sys::SubmitEvent| on_submit(ev.unchecked_into());
}
};

View file

@ -128,8 +128,8 @@ where
} else {
view! { cx,
<a
href=move || href().unwrap_or_default()
aria-current=move || if is_active() { Some("page") } else { None }
href=move || href.get().unwrap_or_default()
aria-current=move || if is_active.get() { Some("page") } else { None }
class=move || class.as_ref().map(|class| class.get())
>
{child}