Skip to content

Commit

Permalink
Added extra condition for resetting date picker
Browse files Browse the repository at this point in the history
  • Loading branch information
skduncan committed Dec 12, 2024
1 parent d5e29a8 commit 5ce5837
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 5ce5837

Please sign in to comment.