Skip to content

Commit

Permalink
fix(checkbox): fix onChange value issue (#628)
Browse files Browse the repository at this point in the history
  • Loading branch information
wj0990 authored Jul 13, 2023
1 parent a87933c commit e757f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/CheckBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function CheckBox(props: CheckBoxProps) {
onChange && onChange(state.checked);
} else {
setState({ checked: !state.checked });
onChange && onChange(state.checked);
onChange && onChange(!state.checked);
}
};

Expand Down

0 comments on commit e757f52

Please sign in to comment.