Skip to content

Commit

Permalink
change events
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy Dubov committed Sep 7, 2021
1 parent 11046a0 commit 1aeeade
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

12 changes: 3 additions & 9 deletions resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,8 @@
}
},
mounted() {
setTimeout(() => {
Nova.$emit(this.field.attribute + "-link-place", {
country: this.value
})
}, 0);
updated() {
Nova.$emit(this.field.attribute + "-change", this.value);
},
methods: {
Expand Down Expand Up @@ -103,9 +99,7 @@
this.value = e.target.value;
if (this.field) {
Nova.$emit(this.field.attribute + "-link-change", {
country: this.value
});
Nova.$emit(this.field.attribute + "-change", this.value);
}
},
},
Expand Down

0 comments on commit 1aeeade

Please sign in to comment.