Skip to content

Commit

Permalink
Merge pull request #21 from dillingham/bug
Browse files Browse the repository at this point in the history
Bug
  • Loading branch information
dillingham authored Aug 27, 2020
2 parents ddf1973 + 3007115 commit c8d48e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ export default {
},
mounted() {
if(!this.parent_attribute) {
this.updateOptions();
}
this.watchedComponents.forEach(component => {
let attribute = 'value'
Expand All @@ -51,6 +55,10 @@ export default {
computed: {
watchedComponents() {
if(!this.field.parent_attribute) {
return [];
}
return this.$parent.$children.filter(component => {
return this.isWatchingComponent(component);
})
Expand Down

0 comments on commit c8d48e7

Please sign in to comment.