Merge pull request #555 from Safelite/feature/CSR-659
Fixed bug that was clearing out Vin when re-focusing field after blur…
This commit is contained in:
commit
e649557486
1 changed files with 7 additions and 2 deletions
|
|
@ -187,6 +187,7 @@ export default {
|
|||
invalidZip: '',
|
||||
vinPopulatedOnPageLoad: this.getVinFromStore()?.length > 0,
|
||||
initialVin: this.getVinFromStore(),
|
||||
vinTouched: false,
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
|
|
@ -250,8 +251,12 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
setVinTouched() {
|
||||
this.vinMask = "XXXXXXXXXXXXXXXXX";
|
||||
this.vin = this.initialVin;
|
||||
if (!this.vinTouched) {
|
||||
this.vinMask = "XXXXXXXXXXXXXXXXX";
|
||||
this.vin = this.initialVin;
|
||||
}
|
||||
|
||||
this.vinTouched = true;
|
||||
},
|
||||
setupVinMask() {
|
||||
const lastSixChars = this.initialVin.substring(11, this.initialVin.length);
|
||||
|
|
|
|||
Loading…
Reference in a new issue