Sfoglia il codice sorgente

fix creating EventHandler in a component

Evan Almloff 1 anno fa
parent
commit
ce902e4586
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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)
             }),
         }
     }