Skip to content

Commit

Permalink
fix onChange type override (elastic#3921)
Browse files Browse the repository at this point in the history
  • Loading branch information
thompsongl authored Aug 14, 2020
1 parent 1950da1 commit cece6ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/toggle/toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const TYPES = Object.keys(typeToInputTypeMap);

export type ToggleType = keyof typeof typeToInputTypeMap;

export type EuiToggleProps = HTMLAttributes<HTMLDivElement> &
export type EuiToggleProps = Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> &
CommonProps & {
id?: string;
/**
Expand Down

0 comments on commit cece6ad

Please sign in to comment.