diff --git a/src/index.tsx b/src/index.tsx index aac4eee..11e557a 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -38,11 +38,12 @@ 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, @@ -90,7 +91,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 07c12b0..88a68cf 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`] = ` - - + `;