Skip to content

Commit c8d48e7

Browse files
authored
Merge pull request #21 from dillingham/bug
Bug
2 parents ddf1973 + 3007115 commit c8d48e7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

dist/js/field.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/js/components/FormField.vue

+8
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ export default {
3232
},
3333
3434
mounted() {
35+
if(!this.parent_attribute) {
36+
this.updateOptions();
37+
}
38+
3539
this.watchedComponents.forEach(component => {
3640
3741
let attribute = 'value'
@@ -51,6 +55,10 @@ export default {
5155
5256
computed: {
5357
watchedComponents() {
58+
if(!this.field.parent_attribute) {
59+
return [];
60+
}
61+
5462
return this.$parent.$children.filter(component => {
5563
return this.isWatchingComponent(component);
5664
})

0 commit comments

Comments
 (0)