Skip to content

Commit

Permalink
update web_sys bindings to non-deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
WorldSEnder committed Aug 22, 2024
1 parent 2dc83f7 commit 8becef0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/yew/src/dom_bundle/subtree_root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,9 @@ impl EventListener {

let callback = Closure::wrap(Box::new(callback) as Box<dyn Fn(&Event)>);
// defaults: { once: false }
let mut options = AddEventListenerOptions::new();
options.capture(true).passive(desc.passive);
let options = AddEventListenerOptions::new();
options.set_capture(true);
options.set_passive(desc.passive);

target
.add_event_listener_with_callback_and_add_event_listener_options(
Expand Down

0 comments on commit 8becef0

Please sign in to comment.