From b99935ffe20bb00837b03c2ba58651dd150a5f4d Mon Sep 17 00:00:00 2001 From: Greg Thompson Date: Fri, 14 Aug 2020 14:13:16 -0600 Subject: [PATCH] fix onChange type override --- src/components/toggle/toggle.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/toggle/toggle.tsx b/src/components/toggle/toggle.tsx index e6d4bc62713..00766e027e5 100644 --- a/src/components/toggle/toggle.tsx +++ b/src/components/toggle/toggle.tsx @@ -30,7 +30,7 @@ export const TYPES = Object.keys(typeToInputTypeMap); export type ToggleType = keyof typeof typeToInputTypeMap; -export type EuiToggleProps = HTMLAttributes & +export type EuiToggleProps = Omit, 'onChange'> & CommonProps & { id?: string; /**