🔰stop propagation
Last updated
Last updated
browser ⟩ event ⟩ propagation ⟩ stop
At any point, an event handler can call stopPropagation()
on the event object to prevent handlers further up from receiving the event.
This can be useful when, for example, you have a button inside another clickable element and you don’t want clicks on the button to activate the outer element’s click behavior.
won't stop other events' handlers on the same element from propagation
it only stops subsequent handlers on the same event of the same element