CSR-1027 Change default for back glass if slider is no longer available
This commit is contained in:
parent
b54c046a3d
commit
284f239992
1 changed files with 8 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue