Skip to content

Commit

Permalink
fix: span title loss (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
linxianxi committed Jun 14, 2023
1 parent 2c8dc5a commit f5a2fd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const Checkbox = forwardRef<CheckboxRef, CheckboxProps>((props, ref) => {
disabled,
defaultChecked = false,
type = 'checkbox',
title,
onChange,
...inputProps
} = props;
Expand Down Expand Up @@ -85,7 +86,7 @@ export const Checkbox = forwardRef<CheckboxRef, CheckboxProps>((props, ref) => {
};

return (
<span className={classString} style={style}>
<span className={classString} title={title} style={style}>
<input
{...inputProps}
className={`${prefixCls}-input`}
Expand Down

0 comments on commit f5a2fd7

Please sign in to comment.