Skip to content

Commit

Permalink
Makes SuperDatePicker onRefresh prop optional like it should be
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonrhodes committed Mar 19, 2019
1 parent cae5b66 commit b6b7b92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Fixed `hexToRgb` from erroring on an incorrect string input ([#1741](https://github.com/elastic/eui/pull/1741))
- Fixed `EuiBadge` custom `color` prop type ([#1741](https://github.com/elastic/eui/pull/1741))
- Fixed inaccurately required `onRefresh` prop (should be optional) that was introduced in types in version 9.4.1 ([#1743](https://github.com/elastic/eui/pull/1743))

## [`9.4.1`](https://github.com/elastic/eui/tree/v9.4.1)

Expand Down
2 changes: 1 addition & 1 deletion src/components/date_picker/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ declare module '@elastic/eui' {
isPaused?: boolean;
refreshInterval?: number;
onTimeChange: (props: OnTimeChangeProps) => void;
onRefresh: (props: OnRefreshProps) => void;
onRefresh?: (props: OnRefreshProps) => void;
onRefreshChange?: (props: OnRefreshChangeProps) => void;
commonlyUsedRanges?: EuiSuperDatePickerCommonRange[];
dateFormat?: string;
Expand Down

0 comments on commit b6b7b92

Please sign in to comment.