I have this structure below,
<a href="/popup/ticket/confirm/" class="link">
<div class="card">
<div class="card-content">
<div class="pin-heart">
<i class="fal fa-heart"></i>
</div>
…
</div>
</div>
</a>
and the ‘a’ tag is a router to open as a popup.
Then, I have this js code below too. cause’ I don’t want to open the popup when the ‘pin-heart’ tag is clicked.
$$(document).on(‘click’, ‘.pin-heart’, function(e) {
e.stopImmediatePropagation();
e.stopPropagation();
console.log(‘aa’);
}, true);
but, still the popup is opened.
help me, plzzzzz.
what should I do?