Selaa lähdekoodia

fix creating EventHandler in a component

Evan Almloff 1 vuosi sitten
vanhempi
commit
ce902e4586
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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)
             }),
         }
     }