event.stopPropagation() can be used to stop further propagation of an event through the DOM (Document Object Model) hierarchy.
I made use of it in Angular Framework