{{ showAfternoonAvailabilityForIndex(n - 1) }} available
@@ -98,6 +100,15 @@
+
-
@@ -180,7 +183,7 @@ export default {
default: ''
}
},
- emits: ['update:modelValue', 'dateSelected', 'timeSlotSelected'],
+ emits: ['dateSelected', 'timeSlotSelected'],
setup(props) {
const uuid = crypto.randomUUID();
const componentId = !props.customComponentId
@@ -556,6 +559,11 @@ export default {
this.selectedTime = null;
}
},
+ timeSlotFocused(timeSlot) {
+ if (timeSlot && this.selectedTime === null) {
+ this.selectTimeSlotForDay(timeSlot);
+ }
+ },
timeSlotInputChanged(timeSlot) {
this.selectTimeSlotForDay(timeSlot);
},
@@ -648,6 +656,9 @@ export default {
this.findInitialDate(config.preSelectedDate, pageIndexObj.initialDayIndex);
} else {
this.findFirstAvailableDateInView();
+ while (!this.selectedDate) {
+ this.gotoNextPage();
+ }
}
this.isLoading = false;
@@ -665,7 +676,9 @@ export default {
await this.updateSelectableDates(
startDateToFetchString,
endDateToFetchString
- );
+ ).catch(() => {
+ showIssLoadingModal(false);
+ });
showIssLoadingModal(false);
},