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:
commit
d35b9fe55f
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue