Skip to content

Commit 3aba30f

Browse files
committed
fix:修复CheckBox组件onChange传递值
1 parent 045ad1a commit 3aba30f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/CheckBox/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function CheckBox(props: CheckBoxProps) {
3838
const onPress = () => {
3939
const { onChange } = props;
4040
if (Reflect.has(props, 'checked')) {
41-
onChange && onChange(state.checked);
41+
onChange && onChange(!state.checked);
4242
} else {
4343
setState({ checked: !state.checked });
4444
onChange && onChange(!state.checked);

0 commit comments

Comments
 (0)