diff --git a/src/static-past-time-picker/QuickPicker.tsx b/src/static-past-time-picker/QuickPicker.tsx
index 9fd551b487..9143fb0b26 100644
--- a/src/static-past-time-picker/QuickPicker.tsx
+++ b/src/static-past-time-picker/QuickPicker.tsx
@@ -11,6 +11,7 @@ function QuickPicker({
options: optionsParams,
optionsFilter,
onSelect,
+ onCancel,
timeRange,
experimental,
NotAvailableToday,
@@ -53,7 +54,8 @@ function QuickPicker({
};
const handleCancel = () => {
- onSelect(timeRange as string);
+ // onSelect(timeRange as string);
+ onCancel?.();
};
useEffect(() => {
@@ -93,7 +95,7 @@ function QuickPicker({
-