Merge pull request #2892 from Safelite/feature/CASH-1677-v2

CASH-1677 add emit to force selection change if only one
This commit is contained in:
AdamCaouetteSafelite 2025-10-14 13:24:39 -04:00 committed by GitHub
commit d35b9fe55f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -509,8 +509,12 @@ export default {
// this.availableTimeSlots only returns mobile/inshop slots so we know
// the only available slot is not dropOFf
this.selectedAnswerForTimeSlots = this.availableTimeSlots[0].value;
// emit up to parent that the time slot has been selected (when mobile or inshop)
this.timeSlotSelectionChanged(this.availableTimeSlots[0].value);
} else {
this.selectedAnswerForDropOffOrInshop = this.answersForDropOffQuestion[0].value;
// emit up to parent that the time slot has been selected (when only dropoff)
this.dropOffSelectionChanged(this.answersForDropOffQuestion[0].value);
}
}
},