diff --git a/leptos_dom/src/events.rs b/leptos_dom/src/events.rs index 8d50a3cbf0..91af06ec13 100644 --- a/leptos_dom/src/events.rs +++ b/leptos_dom/src/events.rs @@ -150,7 +150,10 @@ pub(crate) fn add_delegated_event_listener( if !maybe_handler.is_undefined() { let f = maybe_handler .unchecked_ref::(); - let _ = f.call1(&node, &ev); + + if let Err(e) = f.call1(&node, &ev) { + wasm_bindgen::throw_val(e); + } if ev.cancel_bubble() { return;