Skip to content

Commit

Permalink
Range ts (elastic#2211)
Browse files Browse the repository at this point in the history
* Add TS for onChange in EUIRange

* Update CHANGELOG.md

* Update index.d.ts

* Apply code review comments

* Update CHANGELOG.md
  • Loading branch information
maryia-lapata authored and thompsongl committed Sep 10, 2019
1 parent d72aa74 commit 3260128
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- Fixed `EuiSwitch` semantics to align with aria roles ([#2193](https://github.com/elastic/eui/pull/2193))
- Removed Firefox's focus ring to match other browsers ([#2193](https://github.com/elastic/eui/pull/2193))
- Added missing `onChange` TS defs for EuiRange ([#2211](https://github.com/elastic/eui/pull/2211))

## [`13.3.0`](https://github.com/elastic/eui/tree/v13.3.0)

Expand Down
7 changes: 7 additions & 0 deletions src/components/form/range/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ declare module '@elastic/eui' {
tickInterval?: number;
valueAppend?: ReactNode;
valuePrepend?: ReactNode;

onChange?: (
event:
| React.ChangeEvent<HTMLInputElement>
| React.MouseEvent<HTMLButtonElement>,
isValid: boolean
) => void;
}

export const EuiRange: FunctionComponent<
Expand Down

0 comments on commit 3260128

Please sign in to comment.