Had to reset values prior to getting new values because if the same values comes back and it auto selects the watch won't trigger because the value doesn't technically change
This commit is contained in:
parent
e7015c98b3
commit
c7552b7f5c
1 changed files with 4 additions and 9 deletions
|
|
@ -140,33 +140,28 @@ export default {
|
|||
watch: {
|
||||
selectedYear(value) {
|
||||
this.mainStore.updateVehicleYear(value);
|
||||
this.$refs["vehicleMakeQuestion"].clearValues();
|
||||
if(value)
|
||||
{
|
||||
this.$refs["vehicleMakeQuestion"].getNewValues();
|
||||
}
|
||||
else{
|
||||
this.$refs["vehicleMakeQuestion"].clearValues();
|
||||
}
|
||||
},
|
||||
selectedMake(value) {
|
||||
this.mainStore.updateVehicleMake(value);
|
||||
this.$refs["vehicleModelQuestion"].clearValues();
|
||||
if(value)
|
||||
{
|
||||
this.$refs["vehicleModelQuestion"].getNewValues();
|
||||
}
|
||||
else{
|
||||
this.$refs["vehicleModelQuestion"].clearValues();
|
||||
}
|
||||
},
|
||||
selectedModel(value) {
|
||||
this.mainStore.updateVehicleModel(value);
|
||||
this.$refs["vehicleStyleQuestion"].clearValues();
|
||||
if(value)
|
||||
{
|
||||
this.$refs["vehicleStyleQuestion"].getNewValues();
|
||||
}
|
||||
else{
|
||||
this.$refs["vehicleStyleQuestion"].clearValues();
|
||||
}
|
||||
|
||||
},
|
||||
selectedStyle(value) {
|
||||
this.mainStore.updateVehicleStyle(value);
|
||||
|
|
|
|||
Loading…
Reference in a new issue