Skip to content

Commit

Permalink
Update the typedef for EuiSwitch's onChange prop (#1144)
Browse files Browse the repository at this point in the history
* Update the typedef for EuiSwitch's onChange prop

* changelog
  • Loading branch information
chandlerprall authored Aug 28, 2018
1 parent f67b408 commit 3b5ecfc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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))
Expand Down
5 changes: 1 addition & 4 deletions src/components/form/switch/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@ declare module '@elastic/eui' {
/**
* @see './switch.js'
*/
export type EuiSwitchChangeCallback = (state: boolean) => void;

export type EuiSwitchProps = CommonProps &
Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> & {
InputHTMLAttributes<HTMLInputElement> & {
label?: ReactNode;
onChange?: EuiSwitchChangeCallback;
};

export const EuiSwitch: SFC<EuiSwitchProps>;
Expand Down

0 comments on commit 3b5ecfc

Please sign in to comment.