Skip to content

Commit

Permalink
fix(checkbox): 修复checkbox组件在账号申请中的bug (#679)
Browse files Browse the repository at this point in the history
修复checkbox组件在账号申请中的bug
  • Loading branch information
WORLDI authored Jan 4, 2021
1 parent 89afdbf commit 19a9fee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/checkbox/checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Checkbox: React.FC<CheckboxProps> = ({
if (onChange) onChange(e);
checkGroup?.toggleOption?.({ label: children, value: restProps.value });
},
[onChange]
[onChange,check]
);

const prefixCls = usePrefixCls('checkbox', customizePrefixCls);
Expand Down Expand Up @@ -63,9 +63,9 @@ const Checkbox: React.FC<CheckboxProps> = ({
const checkboxIconClass = classNames({
[`${prefixCls}-icon`]: true,
[`${prefixCls}-icon-indeterminate`]: indeterminate,
[`${prefixCls}-icon-cool`]: !(checkProps.disabled || checkProps.checked || check || checkProps.indeterminate),
[`${prefixCls}-icon-cool`]: !(checkProps.disabled || checkProps.checked || checkProps.indeterminate),
[`${prefixCls}-icon-disabled`]: checkProps.disabled,
[`${prefixCls}-icon-checked`]: check || checkProps.checked,
[`${prefixCls}-icon-checked`]: checkProps.checked !== undefined ? checkProps.checked : check,
});

return (
Expand Down

1 comment on commit 19a9fee

@vercel
Copy link

@vercel vercel bot commented on 19a9fee Jan 4, 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.