Skip to content

Commit

Permalink
fix: refreshMinInterval for use in EuiQuickSelectPopover (#7905)
Browse files Browse the repository at this point in the history
Co-authored-by: Cee Chen <[email protected]>
  • Loading branch information
nickofthyme and cee-chen committed Jul 23, 2024
1 parent a23a446 commit 5977952
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/eui/changelogs/upcoming/7905.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**Bug fixes**

- Fixed `EuiSuperDatePicker` not correctly passing `refreshMinInterval` from the quick select popover
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import {
ApplyTime,
QuickSelect,
QuickSelectPanel,
Milliseconds,
} from '../../types';

export type CustomQuickSelectRenderOptions = {
Expand All @@ -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;
Expand Down Expand Up @@ -137,6 +139,7 @@ export const EuiQuickSelectPanels: FunctionComponent<
customQuickSelectRender,
isPaused,
refreshInterval,
refreshMinInterval,
intervalUnits,
applyRefreshInterval,
applyTime,
Expand Down Expand Up @@ -173,6 +176,7 @@ export const EuiQuickSelectPanels: FunctionComponent<
onRefreshChange={applyRefreshInterval}
isPaused={isPaused}
refreshInterval={refreshInterval}
minInterval={refreshMinInterval}
intervalUnits={intervalUnits}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ export class EuiSuperDatePickerInternal extends Component<
onRefreshChange,
recentlyUsedRanges,
refreshInterval,
refreshMinInterval,
refreshIntervalUnits,
isPaused,
isDisabled,
Expand All @@ -477,6 +478,7 @@ export class EuiSuperDatePickerInternal extends Component<
isPaused={isPaused}
recentlyUsedRanges={recentlyUsedRanges}
refreshInterval={refreshInterval}
refreshMinInterval={refreshMinInterval}
intervalUnits={refreshIntervalUnits}
start={start}
timeOptions={timeOptions}
Expand Down

0 comments on commit 5977952

Please sign in to comment.