Skip to content

Commit

Permalink
fix: including node_ref after {..} on arbitrary components (lepto…
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj authored Jan 18, 2025
1 parent 3413825 commit ac33527
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions leptos_macro/src/view/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1129,6 +1129,11 @@ pub(crate) fn attribute_absolute(
::leptos::tachys::html::attribute::custom::custom_attribute(#name, #value)
}
}
else if name == "node_ref" {
quote! {
::leptos::tachys::html::node_ref::#key(#value)
}
}
else {
quote! {
::leptos::tachys::html::attribute::#key(#value)
Expand Down

0 comments on commit ac33527

Please sign in to comment.