diff --git a/src/index.tsx b/src/index.tsx index 11e557a..aac4eee 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -38,12 +38,11 @@ export const Checkbox = forwardRef((props, ref) => { type = 'checkbox', title, onChange, - children, ...inputProps } = props; const inputRef = useRef(null); - const holderRef = useRef(null); + const holderRef = useRef(null); const [rawValue, setRawValue] = useMergedState(defaultChecked, { value: checked, @@ -91,7 +90,7 @@ export const Checkbox = forwardRef((props, ref) => { }; return ( - + ); }); diff --git a/tests/__snapshots__/index.test.tsx.snap b/tests/__snapshots__/index.test.tsx.snap index 88a68cf..07c12b0 100644 --- a/tests/__snapshots__/index.test.tsx.snap +++ b/tests/__snapshots__/index.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`rc-checkbox click checkbox 1`] = ` - + `; exports[`rc-checkbox click radio 1`] = ` - + `; exports[`rc-checkbox control mode 1`] = ` - + `; exports[`rc-checkbox works 1`] = ` - + `;