Rewrite preventDefault to focus on defaultPrevented.