From dc52a35b240409172e2e30506947bf222b4a2cab Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Wed, 18 Feb 2026 10:51:51 -0500 Subject: [PATCH] Auto select if only 1 timeslot --- .../date-picker/date-picker.vue | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/digital-components/date-picker/date-picker.vue b/src/digital-components/date-picker/date-picker.vue index 4a9e78b5..d03bd207 100644 --- a/src/digital-components/date-picker/date-picker.vue +++ b/src/digital-components/date-picker/date-picker.vue @@ -558,8 +558,12 @@ export default { this.selectedDate = morningDateString; this.selectedTimeOfDayGrouping = 'morning'; this.selectableTimeSlotsData = selectableDateObj.morningTimeSlots; - this.selectedTime = null; - this.selectedTimeSlot = null; + if (selectableDateObj.morningTimeSlots.length === 1) { + this.selectTimeSlotForDay(selectableDateObj.morningTimeSlots[0]); + } else { + this.selectedTime = null; + this.selectedTimeSlot = null; + } } }, showAfternoonAvailabilityForIndex(index) { @@ -582,8 +586,12 @@ export default { this.selectedDate = afternoonDateString; this.selectedTimeOfDayGrouping = 'afternoon'; this.selectableTimeSlotsData = selectableDateObj.afternoonTimeSlots; - this.selectedTimeSlot = null; - this.selectedTime = null; + if (selectableDateObj.afternoonTimeSlots.length === 1) { + this.selectTimeSlotForDay(selectableDateObj.afternoonTimeSlots[0]); + } else { + this.selectedTime = null; + this.selectedTimeSlot = null; + } } }, timeSlotFocused(timeSlot) {