fix creating EventHandler in a component

This commit is contained in:
Evan Almloff 2024-01-07 09:18:45 -06:00
parent ebacc7b709
commit ce902e4586

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)
}), }),
} }
} }