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: {
|
||||
addressModel: {
|
||||
handler(newValue){
|
||||
//this.displayNoMatchWarning = false;
|
||||
handler(newValue) {
|
||||
if (!newValue.city &&
|
||||
!newValue.state &&
|
||||
!newValue.zipCode) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.displayNoMatchWarning === true) {
|
||||
this.displayNoMatchWarning = false;
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue