Click MouseEvent not bubbling

Maybe it's not bubbling? Maybe it is? I'm not 100% sure, but it doesn't look like it and I can't seem to work out why šŸ¤·ā€ā™‚ļø
const clickEvent = new MouseEvent("click", {
"bubbles": true,
});
currentCard.dispatchEvent(clickEvent);
const clickEvent = new MouseEvent("click", {
"bubbles": true,
});
currentCard.dispatchEvent(clickEvent);
Not being handled by: document.addEventListener("click", doFlip); On line 39: https://codepen.io/nwoodward/pen/gOdWbxZ?editors=1111
1 Reply
JWode
JWodeOPā€¢2y ago
Yup, I'm an idiot šŸ˜„ I'm adding the listener after, whoops
Want results from more Discord servers?
Add your server