Use event.stopPropagation instead of checking event.target

This is better because instead of ignoring an event when is bubbled up,
it isn't bubbled up in the first place.