We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d7f30d commit 3afa103Copy full SHA for 3afa103
src/PickerInput/RangePicker.tsx
@@ -501,6 +501,7 @@ function RangePicker<DateType extends object = any>(
501
const passed = triggerSubmitChange(nextValues);
502
503
if (passed) {
504
+ lastOperation('preset-click');
505
triggerOpen(false, { force: true });
506
}
507
};
src/PickerInput/hooks/useRangeActive.ts
@@ -2,7 +2,7 @@ import * as React from 'react';
2
import type { RangeValueType } from '../RangePicker';
3
import useLockEffect from './useLockEffect';
4
5
-export type OperationType = 'input' | 'panel';
+export type OperationType = 'input' | 'panel' | 'preset-click';
6
7
export type NextActive<DateType> = (nextValue: RangeValueType<DateType>) => number | null;
8
0 commit comments