Prevent child elements from inherting parent's events

Closes #3