Function yew::events::set_event_bubbling
source · pub fn set_event_bubbling(bubble: bool)
Available on crate feature
csr
only.Expand description
Set, if events should bubble up the DOM tree, calling any matching callbacks.
Bubbling is enabled by default. Disabling bubbling can lead to substantial improvements in event handling performance.
Note that yew uses event delegation and implements internal even bubbling for performance
reasons. Calling Event.stopPropagation()
or Event.stopImmediatePropagation()
in the event
handler has no effect.
This function should be called before any component is mounted.