SyntaxFix
Write A Post
Hire A Developer
Questions
I did not get the accepted answer to work, but this seems to do the trick, at least in vanilla JS.
if(e.target !== e.currentTarget) return;