this commit fixes an issue where we used the event target to prevent default even if the target element wasn't an event handler.
this commit fixes an issue where we used the event target to prevent default even if the target element wasn't an event handler.