fix: top-level SVG in view macro with new exports (#525)

This commit is contained in:
Greg Johnston 2023-02-15 15:38:06 -05:00 committed by GitHub
parent 00a796d204
commit 8d42e91eb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -287,7 +287,7 @@ fn root_element_to_tokens_ssr(
} else if is_math_ml_element(&tag_name) {
quote! { math::#typed_element_name }
} else {
quote! { #typed_element_name }
quote! { html::#typed_element_name }
};
let full_name = if is_custom_element {
quote! {
@ -295,7 +295,7 @@ fn root_element_to_tokens_ssr(
}
} else {
quote! {
leptos::leptos_dom::html::#typed_element_name::default()
leptos::leptos_dom::#typed_element_name::default()
}
};
quote! {