Bug fixes & UI polish 💅

This commit is contained in:
Julien Nahum
2023-10-13 12:29:34 +02:00
parent f0939f3992
commit aebe5f5738
4 changed files with 21 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div>
<div class="flex">
<v-button
class="w-full"
color="light-gray"
@@ -27,7 +27,7 @@
<span>Url Form Prefill</span>
</template>
<div class="p-4">
<div class="p-4" ref="content">
<p>
Create dynamic links when sharing your form (whether it's embedded or not), that allows you to prefill
your form fields. You can use this to personalize the form when sending it to multiple contacts for instance.
@@ -89,7 +89,9 @@ export default {
generateUrl (formData, onFailure) {
this.prefillFormData = formData
this.$nextTick().then(() => {
this.$refs.content.parentElement.parentElement.parentElement.scrollTop = (this.$refs.content.offsetHeight - this.$refs.content.parentElement.parentElement.parentElement.offsetHeight + 50)
if (this.$refs.content) {
this.$refs.content.parentElement.parentElement.parentElement.scrollTop = this.$refs.content.offsetHeight
}
})
}
}