Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/PickerInput/RangePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ function RangePicker<DateType extends object = any>(
const passed = triggerSubmitChange(nextValues);

if (passed) {
lastOperation('preset-click');
triggerOpen(false, { force: true });
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/PickerInput/hooks/useRangeActive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import type { RangeValueType } from '../RangePicker';
import useLockEffect from './useLockEffect';

export type OperationType = 'input' | 'panel';
export type OperationType = 'input' | 'panel' | 'preset-click';

export type NextActive<DateType> = (nextValue: RangeValueType<DateType>) => number | null;

Expand Down