chore: add missing import for IntoAnyAttribute when using erase_components (#4481)

This commit is contained in:
Merlijn
2025-12-15 20:57:32 +01:00
committed by GitHub
parent 9dd52e6c15
commit 5af5fdeeed

View File

@@ -176,7 +176,9 @@ pub(crate) fn component_to_tokens(
let spreads = (!(spreads.is_empty())).then(|| {
if cfg!(feature = "__internal_erase_components") {
quote! {
.add_any_attr(vec![#(#spreads.into_any_attr(),)*])
.add_any_attr({
vec![#(::leptos::html::attribute::any_attribute::IntoAnyAttribute::into_any_attr(#spreads),)*]
})
}
} else {
quote! {