Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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