Fix forms
This commit is contained in:
parent
c49af07aa1
commit
735f398605
|
|
@ -117,14 +117,14 @@
|
||||||
:admin-preview="adminPreview"
|
:admin-preview="adminPreview"
|
||||||
@submit="submitForm"
|
@submit="submitForm"
|
||||||
>
|
>
|
||||||
<template #submit-btn="{rootSubmitForm}">
|
<template #submit-btn="{submitForm: handleSubmit}">
|
||||||
<open-form-button
|
<open-form-button
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:theme="theme"
|
:theme="theme"
|
||||||
:color="form.color"
|
:color="form.color"
|
||||||
class="mt-2 px-8 mx-1"
|
class="mt-2 px-8 mx-1"
|
||||||
:class="submitButtonClass"
|
:class="submitButtonClass"
|
||||||
@click.prevent="rootSubmitForm"
|
@click.prevent="handleSubmit"
|
||||||
>
|
>
|
||||||
{{ form.submit_button_text }}
|
{{ form.submit_button_text }}
|
||||||
</open-form-button>
|
</open-form-button>
|
||||||
|
|
|
||||||
|
|
@ -347,7 +347,11 @@ export default {
|
||||||
this.initForm()
|
this.initForm()
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
nextTick(() => {
|
||||||
|
if (this.$refs['form-timer']) {
|
||||||
this.$refs['form-timer'].startTimer()
|
this.$refs['form-timer'].startTimer()
|
||||||
|
}
|
||||||
|
})
|
||||||
if (import.meta.client && window.location.href.includes('auto_submit=true')) {
|
if (import.meta.client && window.location.href.includes('auto_submit=true')) {
|
||||||
this.isAutoSubmit = true
|
this.isAutoSubmit = true
|
||||||
this.submitForm()
|
this.submitForm()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue