From ce902e4586ea12071ecb6e82b7424e055cc27e28 Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Sun, 7 Jan 2024 09:18:45 -0600 Subject: [PATCH] fix creating EventHandler in a component --- packages/rsx/src/component.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rsx/src/component.rs b/packages/rsx/src/component.rs index c947e71da..d703ccb51 100644 --- a/packages/rsx/src/component.rs +++ b/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) }), } }