I have a click event nested one level. When i click on the child the expected function is called but the parent\'s function is also called. Here is the code
You need to use stopPropagation() for checkbox event:
It prevents further propagation of the current event in the capturing and bubbling phases. You can read more here. Also, you probably need to add stopPropagation() to click event of checkbox, but I'm not 100% sure: