Updated the docs of set_event_bubbling (#3391)

The removed paragraph describes a caveat of the framework which is no longer true
This commit is contained in:
Tim Kurdov 2023-09-23 14:02:44 +01:00 committed by GitHub
parent ca2aa2a4a6
commit 0f2fc59b54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -286,10 +286,6 @@ static BUBBLE_EVENTS: AtomicBool = AtomicBool::new(true);
/// 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.
#[cfg(feature = "csr")]
pub fn set_event_bubbling(bubble: bool) {