Prevent default behavior when an input event was handled
Add preventDefault to mocked events