Skip to content

Commit

Permalink
EuiFilterSelect add missing TS def (#2291)
Browse files Browse the repository at this point in the history
* Add missing TS def for EuiFilterSelect.

* Update CHANGELOG.md

* Add "Bug fixes" heading to CHANGELOG entry.
  • Loading branch information
justinkambic committed Sep 9, 2019
1 parent 3c22135 commit e0b1890
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## [`master`](https://github.com/elastic/eui/tree/master)

**Bug fixes**

- Updated TS def for `EuiFilterSelect` ([#2291](https://github.com/elastic/eui/pull/2291))
- Fixed alignment of icons and label in `EuiSideNavItem` ([#2297](https://github.com/elastic/eui/pull/2297))

## [`13.8.0`](https://github.com/elastic/eui/tree/v13.8.0)
Expand Down
1 change: 1 addition & 0 deletions src/components/filter_group/filter_select_item.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ EuiFilterSelectItem.propTypes = {
* Applies an icon and visual styling to activated items
*/
checked: PropTypes.oneOf([CHECKED_ON, CHECKED_OFF]),
onClick: PropTypes.func,
showIcons: PropTypes.bool,
};

Expand Down
1 change: 1 addition & 0 deletions src/components/filter_group/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ declare module '@elastic/eui' {
export type FilterChecked = 'on' | 'off';
export interface EuiFilterSelectItemProps {
checked?: FilterChecked;
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
}

// eslint-disable-next-line react/prefer-stateless-function
Expand Down

0 comments on commit e0b1890

Please sign in to comment.