Top "Event-propagation" questions

Event propagation, or "bubbling", occurs when an event occurs inside an element, which is stacked in other elements.

event.preventDefault() vs. return false

When I want to prevent other event handlers from executing after a certain event is fired, I can use one …

javascript jquery event-handling dom-events event-propagation
How do I prevent a parent's onclick event from firing when a child anchor is clicked?

I'm currently using jQuery to make a div clickable and in this div I also have anchors. The problem I'm …

javascript jquery event-propagation
Stop mouse event propagation

What is the easiest way to stop mouse events propagation in Angular ? Should I pass special $event object and call …

angular dom-events event-propagation
Prevent scrolling of parent element when inner element scroll position reaches top/bottom?

I have a little "floating tool box" - a div with position:fixed; overflow:auto. Works just fine. But when …

javascript jquery scroll event-bubbling event-propagation
React prevent event bubbling in nested components on click

Here's a basic component. Both the <ul> and <li> have onClick functions. I want only the …

reactjs onclick event-propagation
Close Bootstrap Dropdown after link click

I have a bootstrap dropdown menu below. It has a link in it hooked up to a knockout.js binding, …

javascript twitter-bootstrap drop-down-menu knockout.js event-propagation
How to continue event propagation after cancelling?

When a user clicks a certain link I would like to present them with a confirmation dialog. If they click "…

javascript dom event-propagation
Javascript : How to enable stopPropagation?

With object.stopPropagation() I can stop event bubbling but how can I re-enable it? Is there a pre defined function …

javascript events event-bubbling event-propagation
.preventDefault() not working in on.('input', function{})

I would like to limit number of chars in my editable div to 10. After user reach the limit I would …

javascript jquery html dom-events event-propagation
JavaScript prevent touch move on body element, enable on other elements

but very simply, I'd like to prevent the touchmove event on the body element but leave it enabled for another …

javascript events default event-propagation touchmove