From a2f136079c5735ce252709ced9a5edafce8533e8 Mon Sep 17 00:00:00 2001 From: Philipp Mildenberger Date: Mon, 29 Jul 2024 11:15:21 +0200 Subject: [PATCH] xilem_web: Remove hardcoded `prevent_default`/`stop_propagation` as the user should decide that behavior (#458) I think we could also create some additional sugar around that, but since the event is given to the user, they can handle that behavior anyway. Fixes #457 --- xilem_web/src/events.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/xilem_web/src/events.rs b/xilem_web/src/events.rs index 871b940f1..3211f4036 100644 --- a/xilem_web/src/events.rs +++ b/xilem_web/src/events.rs @@ -70,9 +70,6 @@ fn create_event_listener( ) -> Closure { let thunk = ctx.message_thunk(); let callback = Closure::new(move |event: web_sys::Event| { - // TODO make this configurable - event.prevent_default(); - event.stop_propagation(); let event = event.dyn_into::().unwrap_throw(); thunk.push_message(event); });