From f3ec3417a42ec44684f531a12c192a613f729af7 Mon Sep 17 00:00:00 2001 From: Matheus Cristian Date: Wed, 31 Jul 2024 14:57:16 -0300 Subject: [PATCH] feat(hide-advanced-settings): hides advanced when it is default --- .../form-generator/FormGenerator.vue | 689 +++++++++--------- .../form-generator/inputs/ChoiceInput.vue | 4 +- 2 files changed, 353 insertions(+), 340 deletions(-) diff --git a/src/components/form-generator/FormGenerator.vue b/src/components/form-generator/FormGenerator.vue index 2365d3a5c..c304e06ae 100644 --- a/src/components/form-generator/FormGenerator.vue +++ b/src/components/form-generator/FormGenerator.vue @@ -1,338 +1,351 @@ - - - - - + + + + + diff --git a/src/components/form-generator/inputs/ChoiceInput.vue b/src/components/form-generator/inputs/ChoiceInput.vue index 6eb027dcc..b8033cee8 100644 --- a/src/components/form-generator/inputs/ChoiceInput.vue +++ b/src/components/form-generator/inputs/ChoiceInput.vue @@ -42,7 +42,7 @@ export default { }, initialData: { type: [Array, String], - default: null, + default: '', }, compact: { type: Boolean, @@ -77,7 +77,7 @@ export default { }, }, mounted() { - this.update(); + this.update(this.value); }, methods: { update(value) {