When I add custom data-content and nee to add link on the content, its not working. When I click on the content link, event after adding e.preventDefault() & e.stopPropagation(); it updates the selected item, which should not.
e.preventDefault() & e.stopPropagation(); prevents the closing of selection box but item gets selected that is wrong.
Check the demo here:
https://codepen.io/mukund-topiwala/pen/QrwyGJ?editors=1111