fix creating EventHandler in a component

This commit is contained in:
Evan Almloff committed 2024-01-07 09:18:45 -06:00
1 parent ebacc7b709
commit ce902e4586
1 file changed
+1 -1
+1 -1
View File
@@ -220,7 +220,7 @@ impl ToTokens for ContentField {
#s.to_string() #s.to_string()
}), }),
ContentField::OnHandlerRaw(e) => tokens.append_all(quote! { ContentField::OnHandlerRaw(e) => tokens.append_all(quote! {
::dioxus::core::Attribute::EventHandler(EventHandler::new(#e)) EventHandler::new(#e)
}), }),
} }
} }