Beautiful Open-Source Form Builder
6f647 unable to add a block (#411)
Favour Olayinka292e32959b97
diff --git a/client/components/open/forms/OpenFormField.vue b/client/components/open/forms/OpenFormField.vueindex 66dcf4a66..d98bef745 100644--- a/client/components/open/forms/OpenFormField.vue+++ b/client/components/open/forms/OpenFormField.vue@@ -248,7 +248,7 @@ export default {this.workingFormStore.openAddFieldSidebar(this.field)},getFieldWidthClasses(field) {- if (!field.width || field.width === 'full') return 'col-span-full w-full'+ if (!field.width || field.width === 'full') return 'col-span-full'else if (field.width === '1/2') {return 'w-full sm:col-span-6 col-span-full'} else if (field.width === '1/3') {diff --git a/client/stores/working_form.js b/client/stores/working_form.jsindex 0ff671ddd..5ac49954b 100644--- a/client/stores/working_form.js+++ b/client/stores/working_form.js@@ -129,8 +129,8 @@ export const useWorkingFormStore = defineStore("working_form", {}newBlock.help_position = "below_input"if (- this.selectedFieldIndex === null ||- this.selectedFieldIndex === undefined+ (this.selectedFieldIndex === null || this.selectedFieldIndex === undefined) &&+ (index === null || index === undefined)) {const newFields = clonedeep(this.content.properties)newFields.push(newBlock)