Merge pull request #452 from Demonthos/fix_nonbubbling_web_events

Fix nonbubbling web events
This commit is contained in:
Jon Kelley authored and GitHub committed 2022-06-24 17:05:32 -04:00
commit 83288e274f
10 files changed
+368 -27

No files matched your search

+2
View File
@@ -6,6 +6,7 @@ use std::any::Any;
use std::sync::Arc;
use dioxus_core::{ElementId, EventPriority, UserEvent};
use dioxus_html::event_bubbles;
use dioxus_html::on::*;
#[derive(serde::Serialize, serde::Deserialize)]
@@ -46,6 +47,7 @@ pub fn trigger_from_serialized(val: serde_json::Value) -> UserEvent {
scope_id: None,
element: mounted_dom_id,
data: event,
bubbles: event_bubbles(name),
}
}