You currently have a workaround for your mark as done button where an event called multiple times because the node click event is being called as well. Why not just get rid of mark as done button click handler completely and let the node click event handle it instead of doing your workaround?
Haha, that makes much more sense!
We also found another way using event.stopPropagation() inside the button event listener's function - but your suggestions is more intuitive. 🙏
You currently have a workaround for your mark as done button where an event called multiple times because the node click event is being called as well. Why not just get rid of mark as done button click handler completely and let the node click event handle it instead of doing your workaround?