avoid click propagation code example
Example 1: onclick stoppropagation
<span onclick="event.stopPropagation(); alert('you clicked inside the header');">something inside the header</span>
Example 2: javascript event stoppropagation
event.stopPropagation();