diff --git a/client/components/forms/components/VSwitch.vue b/client/components/forms/components/VSwitch.vue
index ce906f3..719aef8 100644
--- a/client/components/forms/components/VSwitch.vue
+++ b/client/components/forms/components/VSwitch.vue
@@ -13,10 +13,10 @@ const { modelValue, disabled } = defineProps({
modelValue: { type: Boolean, default: false },
disabled: { type: Boolean, default: false }
})
-const emit = defineEmits(['update:modelValue'])
+const emits = defineEmits(['update:modelValue'])
const onClick = () => {
if (disabled) return
- emit('update:modelValue', !modelValue)
+ emits('update:modelValue', !modelValue)
}
diff --git a/client/components/open/forms/OpenForm.vue b/client/components/open/forms/OpenForm.vue
index 2068808..6447303 100644
--- a/client/components/open/forms/OpenForm.vue
+++ b/client/components/open/forms/OpenForm.vue
@@ -48,7 +48,7 @@
{{ currentFieldsPageBreak.next_btn_text }}
@@ -171,6 +171,7 @@ export default {
* Returns the page break block for the current group of fields
*/
currentFieldsPageBreak () {
+ // Last block from current group
const block = this.currentFields[this.currentFields.length - 1]
if (block && block.type === 'nf-page-break') return block
return null
@@ -376,11 +377,13 @@ export default {
this.dataForm = useForm(formData)
},
previousPage () {
+ console.log('preivousPage', this.currentFieldGroupIndex)
this.currentFieldGroupIndex -= 1
window.scrollTo({ top: 0, behavior: 'smooth' })
return false
},
nextPage () {
+ console.log('nextPage',this.currentFieldGroupIndex)
this.currentFieldGroupIndex += 1
window.scrollTo({ top: 0, behavior: 'smooth' })
return false
diff --git a/client/components/open/forms/OpenFormButton.vue b/client/components/open/forms/OpenFormButton.vue
index 915cebb..56a3d9a 100644
--- a/client/components/open/forms/OpenFormButton.vue
+++ b/client/components/open/forms/OpenFormButton.vue
@@ -1,7 +1,6 @@