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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minsky-webform-formkit",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "type": "module",
@@ -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
  }
@@ -70,8 +70,15 @@
70
70
  }
71
71
  }
72
72
 
73
+ .formkit-inner {
74
+ position: relative;
75
+ }
76
+
73
77
  .formkit-input {
74
- @include noRender();
78
+ appearance: none;
79
+ position: absolute;
80
+ width: 100%;
81
+ height: 100%;
75
82
  }
76
83
 
77
84
  .formkit-option-help {