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 d3dc263 commit cc1075aCopy full SHA for cc1075a
src/PickerInput/RangePicker.tsx
@@ -495,6 +495,7 @@ function RangePicker<DateType extends object = any>(
495
const passed = triggerSubmitChange(nextValues);
496
497
if (passed) {
498
+ lastOperation('preset-click');
499
triggerOpen(false, { force: true });
500
}
501
};
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