Skip to content

Commit e757f52

Browse files
authoredJul 13, 2023
fix(checkbox): fix onChange value issue (#628)
1 parent a87933c commit e757f52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/core/src/CheckBox/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function CheckBox(props: CheckBoxProps) {
4141
onChange && onChange(state.checked);
4242
} else {
4343
setState({ checked: !state.checked });
44-
onChange && onChange(state.checked);
44+
onChange && onChange(!state.checked);
4545
}
4646
};
4747

0 commit comments

Comments
 (0)
Please sign in to comment.