Skip to content

Commit

Permalink
fix(checkbox): 修复checkboxGroup.onchange不动态改变刷新的问题 (#1540)
Browse files Browse the repository at this point in the history
Co-authored-by: liudan <liudan@growingio.com>
  • Loading branch information
Danny548326 and liudan committed Nov 29, 2021
1 parent ab91f6e commit 92bb678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/legacy/checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const Checkbox: React.FC<CheckboxProps> = ({
if (onChange) onChange(e);
checkGroup?.toggleOption?.({ label: children, value: restProps.value });
},
[onChange, check]
[onChange, check, checkGroup?.toggleOption]
);

const prefixCls = usePrefixCls('checkbox-legacy', customizePrefixCls);
Expand Down

1 comment on commit 92bb678

@vercel
Copy link

@vercel vercel bot commented on 92bb678 Nov 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.