From 5ce5837a79de346116a8a34d87da5a2cb1e0347a Mon Sep 17 00:00:00 2001 From: Sam Duncan Date: Thu, 12 Dec 2024 08:08:06 -0600 Subject: [PATCH] Added extra condition for resetting date picker --- .../app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbook/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts b/playbook/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts index abb468d60e..cba5d4b493 100644 --- a/playbook/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +++ b/playbook/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts @@ -251,7 +251,7 @@ const datePickerHelper = (config: DatePickerConfig, scrollContainer: string | HT picker.monthsDropdownContainer.value = picker.currentMonth /* Reset date picker to default value on form.reset() */ - if (defaultDate){ + if (defaultDate && !picker.input.value){ picker.setDate(defaultDate) yearChangeHook(picker) }