Explorar el Código

fix creating EventHandler in a component

Evan Almloff hace 1 año
padre
commit
ce902e4586
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/rsx/src/component.rs

+ 1 - 1
packages/rsx/src/component.rs

@@ -220,7 +220,7 @@ impl ToTokens for ContentField {
                 #s.to_string()
             }),
             ContentField::OnHandlerRaw(e) => tokens.append_all(quote! {
-                ::dioxus::core::Attribute::EventHandler(EventHandler::new(#e))
+                EventHandler::new(#e)
             }),
         }
     }