Skip to content

Commit

Permalink
Merge pull request #517 from jitendra-webkul/master
Browse files Browse the repository at this point in the history
Issue #378 fixed
  • Loading branch information
jitendra-webkul committed Oct 18, 2021
2 parents ffcb06c + 332aa4e commit aa802b6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ class="control"
emails: this.data,
}
},
watch: {
data: function(newVal, oldVal) {
if (JSON.stringify(newVal) !== JSON.stringify(oldVal)) {
this.emails = newVal || [{'value': '', 'label': 'work'}];
}
}
},
created: function() {
if (! this.emails || ! this.emails.length) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ class="control"
}
},
watch: {
data: function(newVal, oldVal) {
if (JSON.stringify(newVal) !== JSON.stringify(oldVal)) {
this.contactNumbers = newVal || [{'value': '', 'label': 'work'}];
}
}
},
created: function() {
if (! this.contactNumbers || ! this.contactNumbers.length) {
this.contactNumbers = [{
Expand Down

0 comments on commit aa802b6

Please sign in to comment.