Specify html::a to suppress warning

This commit is contained in:
Greg Johnston 2023-01-03 16:07:51 -05:00
parent 8d14972808
commit 6a4cbbf266
2 changed files with 6 additions and 5 deletions

View file

@ -10,7 +10,8 @@ pub extern crate tracing;
mod components;
mod events;
mod helpers;
mod html;
#[doc(hidden)]
pub mod html;
mod hydration;
mod logging;
mod macro_helpers;

View file

@ -86,7 +86,7 @@ where
cfg_if! {
if #[cfg(any(feature = "csr", feature = "hydrate"))] {
view! { cx,
<a
<html::a
href=move || href.get().unwrap_or_default()
prop:state={state.map(|s| s.to_js_value())}
prop:replace={replace}
@ -94,17 +94,17 @@ where
class=move || class.as_ref().map(|class| class.get())
>
{children(cx)}
</a>
</html::a>
}
} else {
view! { cx,
<a
<html::a
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())
>
{children(cx)}
</a>
</html::a>
}
}
}