@samuel-charpentier/sform 0.0.10 → 0.0.12

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.
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" generics="T = unknown">
2
- import type { Snippet } from 'svelte';
2
+ import { tick, type Snippet } from 'svelte';
3
3
  import type { ButtonState, RemoteFormIssue } from '../types.js';
4
4
  import { getSformContext } from '../context.svelte.js';
5
5
 
@@ -59,6 +59,8 @@
59
59
  // This ensures blur validation runs with valid form data, not stale data
60
60
  buttonElement.focus();
61
61
 
62
+ await tick();
63
+
62
64
  if (onsubmit) {
63
65
  await onsubmit();
64
66
  }
@@ -1,4 +1,4 @@
1
- import type { Snippet } from 'svelte';
1
+ import { type Snippet } from 'svelte';
2
2
  import type { ButtonState, RemoteFormIssue } from '../types.js';
3
3
  declare function $$render<T = unknown>(): {
4
4
  props: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@samuel-charpentier/sform",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "description": "A Svelte 5 form library for SvelteKit remote forms",
5
5
  "keywords": [
6
6
  "svelte",