Skip to content

Commit

Permalink
Merge pull request #1764 from ProcessMaker/bugfix/FOUR-19847
Browse files Browse the repository at this point in the history
Bugfix/FOUR-19847: `column` field is not reset when `single field of record` is changed by `single record`
  • Loading branch information
ryancooley authored Oct 30, 2024
2 parents a4cc1bb + 7f229a5 commit d866e0e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/components/inspector/collection-data-source.vue
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@
},
deep: true
},
dataSelectionOptions() {
this.singleField = null;
}
},
};
</script>
10 changes: 9 additions & 1 deletion src/components/inspector/collection-designer-mode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
],
};
},
mounted () {
this.callBuilder(this.designerOptions);
},
computed: {
options() {
return Object.fromEntries(
Expand All @@ -56,10 +59,15 @@
options: {
handler() {
this.$emit("input", this.options);
this.$root.$emit("style-mode", this.options.designerOptions);
this.callBuilder(this.options.designerOptions);
},
deep: true
},
},
methods: {
callBuilder(option) {
this.$root.$emit("style-mode", option);
}
}
};
</script>
8 changes: 6 additions & 2 deletions src/components/vue-form-builder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,9 @@
v-model="element.items"
:validation-errors="validationErrors"
class="card-body"
:class="styleMode === 'Modern' ? elementCssClassModern(element) : elementCssClass(element)"
:class="styleMode === 'Modern' && element.component === 'FormRecordList'
? elementCssClassModern(element)
: elementCssClass(element)"
:selected="selected"
:config="element.config"
:ai-element="element"
Expand Down Expand Up @@ -318,7 +320,9 @@
:tabindex="element.config.interactive ? 0 : -1"
class="card-body m-0 pb-4 pt-4"
:class="[
styleMode === 'Modern' ? elementCssClassModern(element) : elementCssClass(element),
styleMode === 'Modern' && element.component === 'FormRecordList'
? elementCssClassModern(element)
: elementCssClass(element),
{ 'prevent-interaction': !element.config.interactive }
]"
@input="
Expand Down

0 comments on commit d866e0e

Please sign in to comment.