Skip to content

Commit

Permalink
upd: Always fetch options, use the correct parent value
Browse files Browse the repository at this point in the history
  • Loading branch information
bozhidarampeco committed May 29, 2024
1 parent 3d79e96 commit 67d417e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,15 @@ export default {
mounted() {
this.operator = this.field.operator;
if (this.field.parentValue) {
this.parentValue = this.field.parentValue;
if (this.field.parent_value) {
this.parentValue = this.field.parent_value;
}
if (this.field.options) {
this.options = this.field.options;
}
if (!this.options) {
this.updateOptions();
}
this.updateOptions();
Nova.$on(this.field.parent_attribute+'-change', (value) => {
this.parentValue = value
Expand Down

0 comments on commit 67d417e

Please sign in to comment.