Fix checkbox focus bug and preventDefault bug.