I have a parent container (more precisely, a custom component) to which I attributed a “Link” to “Page”. Now into this parent, I also have a specific button to show a contextual menu. So naturally when I click on this child, I’m redirected to the page given by the parent because I actually clicked on it…
But how can I overwrite the action to operate, not to go on page, but just change my showContextMenu variable ? That is to say, I want to be redirected to the page if I click on this component, except if I click on the button ?
I searched a bit around adding a event.preventDefault() on page load, but nothing conclusive, maybe I did it wrong (see on screenshot).
Hey, i used “Stop click propagration”, but it seems that it works only sometimes, when i spam click my Link it will still redirect me, any idea how to fix that?