fix creating EventHandler in a component
This commit is contained in:
1 parent
ebacc7b709
commit
ce902e4586
1 file changed
+1
-1
@@ -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)
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user