Explorar o código

fix: raw attr names

Jonathan Kelley %!s(int64=2) %!d(string=hai) anos
pai
achega
4aac2cdae1
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      packages/rsx/src/element.rs

+ 2 - 2
packages/rsx/src/element.rs

@@ -264,7 +264,7 @@ impl ToTokens for ElementAttrNamed {
             ElementAttr::CustomAttrText { name, value } => {
                 quote! {
                     __cx.attr(
-                        dioxus_elements::#el_name::#name.0,
+                        #name,
                         #value,
                         None,
                         false
@@ -274,7 +274,7 @@ impl ToTokens for ElementAttrNamed {
             ElementAttr::CustomAttrExpression { name, value } => {
                 quote! {
                     __cx.attr(
-                        dioxus_elements::#el_name::#name.0,
+                        #name,
                         #value,
                         None,
                         false