mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-17 06:08:26 +00:00
fix: serialize custom attrs properly
This commit is contained in:
parent
641488e825
commit
8b854963e9
1 changed files with 3 additions and 2 deletions
|
@ -66,6 +66,7 @@ impl Parse for Element {
|
|||
if content.parse::<Token![,]>().is_err() {
|
||||
missing_trailing_comma!(ident.span());
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -264,7 +265,7 @@ impl ToTokens for ElementAttrNamed {
|
|||
ElementAttr::CustomAttrText { name, value } => {
|
||||
quote! {
|
||||
__cx.attr(
|
||||
dioxus_elements::#el_name::#name.0,
|
||||
#name,
|
||||
#value,
|
||||
None,
|
||||
false
|
||||
|
@ -274,7 +275,7 @@ impl ToTokens for ElementAttrNamed {
|
|||
ElementAttr::CustomAttrExpression { name, value } => {
|
||||
quote! {
|
||||
__cx.attr(
|
||||
dioxus_elements::#el_name::#name.0,
|
||||
#name,
|
||||
#value,
|
||||
None,
|
||||
false
|
||||
|
|
Loading…
Add table
Reference in a new issue