fix: serialize custom attrs properly

This commit is contained in:
Jonathan Kelley committed 2022-12-25 23:58:31 -05:00
1 parent 641488e825
commit 8b854963e9
1 file changed
+3 -2
+3 -2
View File
@@ -66,6 +66,7 @@ impl Parse for Element {
if content.parse::<Token![,]>().is_err() { if content.parse::<Token![,]>().is_err() {
missing_trailing_comma!(ident.span()); missing_trailing_comma!(ident.span());
} }
continue; continue;
} }
@@ -264,7 +265,7 @@ impl ToTokens for ElementAttrNamed {
ElementAttr::CustomAttrText { name, value } => { ElementAttr::CustomAttrText { name, value } => {
quote! { quote! {
__cx.attr( __cx.attr(
dioxus_elements::#el_name::#name.0, #name,
#value, #value,
None, None,
false false
@@ -274,7 +275,7 @@ impl ToTokens for ElementAttrNamed {
ElementAttr::CustomAttrExpression { name, value } => { ElementAttr::CustomAttrExpression { name, value } => {
quote! { quote! {
__cx.attr( __cx.attr(
dioxus_elements::#el_name::#name.0, #name,
#value, #value,
None, None,
false false