mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-11 07:14:16 +00:00
Avoid name conflicts between functions to create elements and local variables
This commit is contained in:
parent
1ee9c2432b
commit
9a114eb595
1 changed files with 2 additions and 2 deletions
|
@ -209,10 +209,10 @@ fn element_to_tokens(
|
|||
} else {
|
||||
let name = if is_custom_element(&node.name) {
|
||||
let name = node.name.to_string();
|
||||
quote_spanned! { span => custom(#cx, #name) }
|
||||
quote_spanned! { span => leptos::leptos_dom::custom(#cx, #name) }
|
||||
} else {
|
||||
let name = &node.name;
|
||||
quote_spanned! { span => #name(#cx) }
|
||||
quote_spanned! { span => leptos::leptos_dom::#name(#cx) }
|
||||
};
|
||||
let attrs = node.attributes.iter().filter_map(|node| {
|
||||
if let Node::Attribute(node) = node {
|
||||
|
|
Loading…
Reference in a new issue