How to make stopping Propagate

I am using a jquery plugin that binds a click event on certain elements.

I know the plugin uses

e.stopPropagation();

but I also want to have my own events when I click on these elements.

Is there a way to make the plugin stopPropagation be inactive or take my event priority over the plugins?

+4
source share
3 answers

e.stopPropagation()stops the event from propagating UP to parent objects. It does not block the use of other event handlers associated with the same object.

, , , e.stopPropagation() . , , .

e.stopPropagation() - , , , . , , , .

+2

click , , click, , .

$("#element").on("click", function(){
   alert('my event called');
});
0
Event.prototype.stopPropagation = null;
0

Source: https://habr.com/ru/post/1537837/


All Articles