mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 12:43:08 +00:00
fix creating EventHandler in a component
This commit is contained in:
parent
ebacc7b709
commit
ce902e4586
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue