Ticket #5378 (closed bug: invalid)
click event of a parent triggered when clicking children
|Reported by:||the_hero||Owned by:||brandon|
Parent element click events are triggered on children elements,
When you assign a click event to a parent element there is currently no way to stop this event from triggering when clicking a child of this parent.
In some situations this is necessary. It is nice to be able to just assign the event to the parent and not worry that it won't be triggered when clicking anywhere inside it including the children. However, much of the time people will have a parent element that does something other than than the parent, sometimes opposite.
Try the attached code to test.