Merge pull request #911 from Safelite/defect/CSR-1027

CSR-1027 Change default for back glass if slider is no longer available
This commit is contained in:
katieoh-safelite 2023-01-04 08:10:39 -05:00 committed by GitHub
commit b4804a7b20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,6 +101,17 @@ 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,