Function yew::virtual_dom::set_event_bubbling[][src]

pub fn set_event_bubbling(bubble: bool)
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.