minsky-webform-formkit 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -99,7 +99,6 @@ const formData = reactive({
|
|
|
99
99
|
* Lifecycle
|
|
100
100
|
* ------------------------------------------------------------------ */
|
|
101
101
|
onMounted(() => {
|
|
102
|
-
console.log('Mounted');
|
|
103
102
|
// we merge messages provided by the user with default messages so there will alway be feedback when the form is submitted or missing
|
|
104
103
|
msgs.value = Object.assign(defaultMessages, props.messages);
|
|
105
104
|
|
|
@@ -294,13 +293,6 @@ function handleSuccess(response) {
|
|
|
294
293
|
successTitle.value = response.confirmation.title;
|
|
295
294
|
successMessage.value = response.confirmation.message;
|
|
296
295
|
success.value = true;
|
|
297
|
-
|
|
298
|
-
gsap.to(window, {
|
|
299
|
-
duration: 0.5,
|
|
300
|
-
scrollTo: { y: formRef.value, offsetY: 200 },
|
|
301
|
-
ease: 'power2',
|
|
302
|
-
});
|
|
303
|
-
|
|
304
296
|
submissionLoading.value = false;
|
|
305
297
|
break;
|
|
306
298
|
|
|
@@ -314,6 +306,13 @@ function handleSuccess(response) {
|
|
|
314
306
|
success.value = true;
|
|
315
307
|
submissionLoading.value = false;
|
|
316
308
|
}
|
|
309
|
+
|
|
310
|
+
// scroll to form after submit so user can see the success message, if there is one
|
|
311
|
+
gsap.to(window, {
|
|
312
|
+
duration: 0.5,
|
|
313
|
+
scrollTo: { y: formRef.value, offsetY: 200 },
|
|
314
|
+
ease: 'power2',
|
|
315
|
+
});
|
|
317
316
|
} else {
|
|
318
317
|
window.location = props.forceRedirect.url;
|
|
319
318
|
}
|