THE PROBLEM: I am building a nested tree using a light package called "listree", but encountering an error whenever I place a link into a parent element in the list.
THE ERROR When clicking the link, a click event is triggered to expand the tree (because the link is contained within a div requiring this event listener) and breaking the flow to link redirection.
THE QUESTION How can I inhibit the firing of this event trigger when clicking a link in a parent that has a click EventListener.
https://codepen.io/atopbio/pen/zYwROwV/
<div class="listree-submenu-heading">Settings<a href="https://www.google.com"> A link not working</a></div>