Skip to content

Commit

Permalink
enhance: label add stopPropagation
Browse files Browse the repository at this point in the history
  • Loading branch information
1587315093 committed Jul 3, 2023
1 parent 1312272 commit 9eae10e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/radio/radio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ export const Radio: FC<RadioProps> = p => {
return withNativeProps(
props,
<label
onClick={e => {
e.stopPropagation()
}}
className={classNames(classPrefix, {
[`${classPrefix}-checked`]: checked,
[`${classPrefix}-disabled`]: disabled,
Expand Down

0 comments on commit 9eae10e

Please sign in to comment.