disable precognition on url prefill modal (#503)
This commit is contained in:
parent
5f320fbc23
commit
7ee5623b8e
|
|
@ -163,6 +163,7 @@ export default {
|
||||||
},
|
},
|
||||||
defaultDataForm: {},
|
defaultDataForm: {},
|
||||||
adminPreview: {type: Boolean, default: false}, // If used in FormEditorPreview
|
adminPreview: {type: Boolean, default: false}, // If used in FormEditorPreview
|
||||||
|
urlPrefillPreview: {type: Boolean, default: false}, // If used in UrlFormPrefill
|
||||||
darkMode: {
|
darkMode: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
|
|
@ -449,7 +450,7 @@ export default {
|
||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
nextPage() {
|
nextPage() {
|
||||||
if (this.adminPreview) {
|
if (this.adminPreview || this.urlPrefillPreview) {
|
||||||
this.currentFieldGroupIndex += 1
|
this.currentFieldGroupIndex += 1
|
||||||
window.scrollTo({ top: 0, behavior: 'smooth' })
|
window.scrollTo({ top: 0, behavior: 'smooth' })
|
||||||
return false
|
return false
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,7 @@
|
||||||
:show-hidden="true"
|
:show-hidden="true"
|
||||||
:form="form"
|
:form="form"
|
||||||
:fields="form.properties"
|
:fields="form.properties"
|
||||||
|
:url-prefill-preview="true"
|
||||||
@submit="generateUrl"
|
@submit="generateUrl"
|
||||||
>
|
>
|
||||||
<template #submit-btn="{ submitForm }">
|
<template #submit-btn="{ submitForm }">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue