feat: eanble bubbling

This commit is contained in:
Jonathan Kelley committed 2022-01-03 02:11:26 -05:00
1 parent d84fc05386
commit 06276edd0d
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
/* /*
Tiny CRM: A port of the Yew CRM example to Dioxus. Tiny CRM: A port of the Yew CRM example to Dioxus.
*/ */
use dioxus::prelude::*; use dioxus::{events::FormEvent, prelude::*};
fn main() { fn main() {
dioxus::desktop::launch(app); dioxus::desktop::launch(app);
+1 -1
View File
@@ -47,12 +47,12 @@ backtrace = "0.3"
[dev-dependencies] [dev-dependencies]
anyhow = "1.0.42" anyhow = "1.0.42"
dioxus-html = { path = "../html" }
fern = { version = "0.6.0", features = ["colored"] } fern = { version = "0.6.0", features = ["colored"] }
rand = { version = "0.8.4", features = ["small_rng"] } rand = { version = "0.8.4", features = ["small_rng"] }
dioxus-core-macro = { path = "../core-macro", version = "^0.1.2" } dioxus-core-macro = { path = "../core-macro", version = "^0.1.2" }
criterion = "0.3.5" criterion = "0.3.5"
thiserror = "1.0.30" thiserror = "1.0.30"
dioxus-html = { path = "../html" }
[features] [features]
default = [] default = []
+3 -3
View File
@@ -17,11 +17,11 @@ pub mod on {
$( $(
$( $(
$(#[$method_attr])* $(#[$method_attr])*
pub fn $name<'a, F>( pub fn $name<'a>(
factory: NodeFactory<'a>, factory: NodeFactory<'a>,
mut callback: F, mut callback: impl FnMut($wrapper) + 'a,
// mut callback: impl FnMut(UiEvent<$data>) + 'a,
) -> Listener<'a> ) -> Listener<'a>
where F: FnMut($wrapper) + 'a
{ {
let bump = &factory.bump(); let bump = &factory.bump();