Embed events in joint popup #1931
Unanswered
Anuthama-Ganesan
asked this question in
Q&A
Replies: 1 comment 7 replies
-
You can not do this: You can, for instance, create an anchor element programmatically and attach an event listener to it. const a = document.createElement('<a/>');
a.addEventListener('click', () => onProducedUnitsClick(unitID), false); |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am trying to invoke a click event on an anchor tag inside joint popup content. The following is the cell event and
onProducedUnitsClick
is the event handler corresponding to the onClick event of the anchor tag.I see a problem here. The event handler for anchor tag which is supposed to get invoked after clicking the anchor element inside the popup, is getting invoked on hover of the cell itself, which is not an expected behavior. Is there anything that I am missing here? Or is there a workaround for this?
Beta Was this translation helpful? Give feedback.
All reactions