CSR-1027 Change default for back glass if slider is no longer available

This commit is contained in:
Katie 2023-01-03 13:08:43 -05:00
parent b54c046a3d
commit 284f239992

View file

@ -101,6 +101,14 @@ export default {
this.selectedValues = this.isMultiSelect ? [] : "";
}
},
replaceOptions(replaceOptions) {
// For rear window, in case user chooses slider and later comes back
// with a vehicle with only stationary
if (!Array.isArray(this.selectedValues) && !replaceOptions.includes(this.selectedValues)) {
this.selectedValues = null;
this.updateSelectedValues();
}
}
},
components: {
buttonQuestion,