feat: replace paired date inputs with range pickers
This commit is contained in:
@@ -99,7 +99,7 @@ const useAccountIncomePageViewModel = (
|
||||
const onReset = () => {
|
||||
const next = defaultPeriod();
|
||||
form.reset(draftPeriod(next));
|
||||
// DateInput retains raw text while its calendar is open; reset that UI state too.
|
||||
// Reset the open calendar along with the form.
|
||||
setFormRevision((revision) => revision + 1);
|
||||
setSearchParams(next, { replace: true });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user