mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
Fix erros in counter-isomorphic with stable
This commit is contained in:
parent
c24958bec4
commit
587a85baaf
3 changed files with 5 additions and 5 deletions
|
@ -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>
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue