Make Checkbox handle the ref attribute.