We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05728e1 commit 98821c4Copy full SHA for 98821c4
packages/yew/src/virtual_dom/listeners.rs
@@ -358,9 +358,8 @@ impl GlobalHandlers {
358
&{
359
let mut opts = web_sys::AddEventListenerOptions::new();
360
opts.capture(true);
361
- if desc.passive {
362
- opts.passive(true);
363
- }
+ // We need to explicitly set passive to override any browser defaults
+ opts.passive(desc.passive);
364
opts
365
},
366
)
0 commit comments