@functionalcms/svelte-components 5.9.2 → 5.9.4

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.
@@ -79,6 +79,7 @@
79
79
  };
80
80
 
81
81
  const handleSubmit = async (event: Event) => {
82
+ console.log('SmartForm submit processing');
82
83
  event.preventDefault();
83
84
  loading = true;
84
85
  debugger;
@@ -95,6 +96,8 @@
95
96
  setTimeout(() => {
96
97
  showMessage = false;
97
98
  }, 3000);
99
+ }else {
100
+ console.warn('Form is invalid or already sending message');
98
101
  }
99
102
  } catch (error) {
100
103
  console.error('Error submitting form:', error);
@@ -281,7 +284,7 @@
281
284
 
282
285
  <div class="buttons">
283
286
  {#each buttons as button}
284
- {#if button.type === 'submit'}
287
+ <!-- {#if button.type === 'submit'}
285
288
  <Button
286
289
  type="button"
287
290
  class={button.class}
@@ -291,7 +294,7 @@
291
294
  >
292
295
  {button.label}
293
296
  </Button>
294
- {:else}
297
+ {:else} -->
295
298
  <Button
296
299
  type={button.type}
297
300
  class={button.class}
@@ -300,7 +303,7 @@
300
303
  >
301
304
  {button.label}
302
305
  </Button>
303
- {/if}
306
+ <!-- {/if} -->
304
307
  {/each}
305
308
  </div>
306
309
  </fieldset>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "5.9.2",
3
+ "version": "5.9.4",
4
4
  "license": "MIT",
5
5
  "watch": {
6
6
  "build": {