diff --git a/packages/eui/changelogs/upcoming/7905.md b/packages/eui/changelogs/upcoming/7905.md new file mode 100644 index 00000000000..b1351973a28 --- /dev/null +++ b/packages/eui/changelogs/upcoming/7905.md @@ -0,0 +1,3 @@ +**Bug fixes** + +- Fixed `EuiSuperDatePicker` not correctly passing `refreshMinInterval` from the quick select popover diff --git a/packages/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.tsx b/packages/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.tsx index 50f94e093ee..72370d74240 100644 --- a/packages/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.tsx +++ b/packages/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.tsx @@ -34,6 +34,7 @@ import { ApplyTime, QuickSelect, QuickSelectPanel, + Milliseconds, } from '../../types'; export type CustomQuickSelectRenderOptions = { @@ -57,7 +58,8 @@ export interface EuiQuickSelectPopoverProps { isDisabled: boolean; isPaused: boolean; recentlyUsedRanges: DurationRange[]; - refreshInterval: number; + refreshInterval: Milliseconds; + refreshMinInterval?: Milliseconds; intervalUnits?: RefreshUnitsOptions; start: string; timeOptions: TimeOptions; @@ -137,6 +139,7 @@ export const EuiQuickSelectPanels: FunctionComponent< customQuickSelectRender, isPaused, refreshInterval, + refreshMinInterval, intervalUnits, applyRefreshInterval, applyTime, @@ -173,6 +176,7 @@ export const EuiQuickSelectPanels: FunctionComponent< onRefreshChange={applyRefreshInterval} isPaused={isPaused} refreshInterval={refreshInterval} + minInterval={refreshMinInterval} intervalUnits={intervalUnits} /> ); diff --git a/packages/eui/src/components/date_picker/super_date_picker/super_date_picker.tsx b/packages/eui/src/components/date_picker/super_date_picker/super_date_picker.tsx index d7db318dd59..d599c5748f0 100644 --- a/packages/eui/src/components/date_picker/super_date_picker/super_date_picker.tsx +++ b/packages/eui/src/components/date_picker/super_date_picker/super_date_picker.tsx @@ -457,6 +457,7 @@ export class EuiSuperDatePickerInternal extends Component< onRefreshChange, recentlyUsedRanges, refreshInterval, + refreshMinInterval, refreshIntervalUnits, isPaused, isDisabled, @@ -477,6 +478,7 @@ export class EuiSuperDatePickerInternal extends Component< isPaused={isPaused} recentlyUsedRanges={recentlyUsedRanges} refreshInterval={refreshInterval} + refreshMinInterval={refreshMinInterval} intervalUnits={refreshIntervalUnits} start={start} timeOptions={timeOptions}