Updated code that shows or hides address error messages based on user input
This commit is contained in:
parent
094ce5098b
commit
1bfe78c3bc
1 changed files with 10 additions and 2 deletions
|
|
@ -271,8 +271,16 @@ export default ({
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
addressModel: {
|
addressModel: {
|
||||||
handler(newValue){
|
handler(newValue) {
|
||||||
//this.displayNoMatchWarning = false;
|
if (!newValue.city &&
|
||||||
|
!newValue.state &&
|
||||||
|
!newValue.zipCode) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.displayNoMatchWarning === true) {
|
||||||
|
this.displayNoMatchWarning = false;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
deep: true
|
deep: true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue