I'm attempting to implement a span tag with a click event within my according header,
however,
I don't want to display or collapse my according element.
So, I tried using stopPropagation() and stopImmediatePropagation(), but neither worked.
Here is a functional example that showcases the issue - https://jsfiddle.net/9pL40roz/1/
window.foo = function(e) {
e.stopPropagation();
console.log('test')
}
I'm aiming to accomplish something similar to the suggestion provided in this link: