diff --git a/packages/co-design-core/src/components/Chips/Chip.tsx b/packages/co-design-core/src/components/Chips/Chip.tsx index a9a3976..695e138 100644 --- a/packages/co-design-core/src/components/Chips/Chip.tsx +++ b/packages/co-design-core/src/components/Chips/Chip.tsx @@ -1,11 +1,10 @@ -import React, { MouseEventHandler, SyntheticEvent, forwardRef } from 'react'; +import React, { forwardRef } from 'react'; import { useUncontrolled, useId } from '@co-design/hooks'; import { CoComponentProps, CoPalette, CoSize, CoRadius, useCoTheme, ClassNames } from '@co-design/styles'; import { View } from '../View'; import { CheckboxIcon } from './CheckboxIcon'; import useStyles from './Chip.style'; import CloseIcon from './CloseIcon'; -import { Text } from '../Text'; export type ChipStylesNames = ClassNames; @@ -107,9 +106,7 @@ export const Chip = forwardRef( type={type} className={classes.input} checked={value} - onChange={(event) => { - setValue(event.currentTarget.checked); - }} + onChange={(event) => setValue(event.currentTarget.checked)} id={uuid} disabled={disabled} ref={ref}