diff --git a/CHANGELOG.md b/CHANGELOG.md index 6523fdf41c1..0a3e83c410e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/components/date_picker/index.d.ts b/src/components/date_picker/index.d.ts index 7402ba53670..9027fe793d3 100644 --- a/src/components/date_picker/index.d.ts +++ b/src/components/date_picker/index.d.ts @@ -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;