I have this scenario, where when parent element is clicked, it flips to show a child element with different colours. Unfortunately, when the user clicks on one of the colours, t
Another solution is to attach to the event callback on the parent the following:
if(event.target == event.currentTarget){ event.stopPropagation() .... }
This way you can intercept events, that originated in the attached DOM node and unrelated events are relayed to the next node.