diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b23de32135..981f3818c33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,11 @@ ## [`master`](https://github.com/elastic/eui/tree/master) -No public interface changes since `3.7.0`. - - Added color and monotone icons for AWS and GCP. ([#1135](https://github.com/elastic/eui/pull/1135)) +**Bug fixes** + +- Fixed `onChange` typedef on `EuiSwitch` ([#1144](https://github.com/elastic/eui/pull/1144) + ## [`3.7.0`](https://github.com/elastic/eui/tree/v3.7.0) - Added `zIndexAdjustment` to `EuiPopover` which allows tweaking the popover content's `z-index` ([#1097](https://github.com/elastic/eui/pull/1097)) diff --git a/src/components/form/switch/index.d.ts b/src/components/form/switch/index.d.ts index 2e6aac98184..f3c67f8c25e 100644 --- a/src/components/form/switch/index.d.ts +++ b/src/components/form/switch/index.d.ts @@ -6,12 +6,9 @@ declare module '@elastic/eui' { /** * @see './switch.js' */ - export type EuiSwitchChangeCallback = (state: boolean) => void; - export type EuiSwitchProps = CommonProps & - Omit, 'onChange'> & { + InputHTMLAttributes & { label?: ReactNode; - onChange?: EuiSwitchChangeCallback; }; export const EuiSwitch: SFC;