Skip to content

Commit f5a2fd7

Browse files
authored
fix: span title loss (#232)
1 parent 2c8dc5a commit f5a2fd7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export const Checkbox = forwardRef<CheckboxRef, CheckboxProps>((props, ref) => {
3535
disabled,
3636
defaultChecked = false,
3737
type = 'checkbox',
38+
title,
3839
onChange,
3940
...inputProps
4041
} = props;
@@ -85,7 +86,7 @@ export const Checkbox = forwardRef<CheckboxRef, CheckboxProps>((props, ref) => {
8586
};
8687

8788
return (
88-
<span className={classString} style={style}>
89+
<span className={classString} title={title} style={style}>
8990
<input
9091
{...inputProps}
9192
className={`${prefixCls}-input`}

0 commit comments

Comments
 (0)