Skip to content

Programmatic preflight validate() #14643

@hyunbinseo

Description

@hyunbinseo

Describe the bug

<button
  type="button"
  onclick={() => {
    addId.fields.uuid.set(self.crypto.randomUUID());
    addId.validate();
  }}
>
  Generate
</button>
  1. UUID is set then validated. But the validation input is still 123
  2. form.fields.input.set() hangs. Have to do multiple clicks for it to work
  3. After submission, the validation result says the input is always ''
2025-10-08.083057.mp4

Reproduction

Logs

System Info

System:
  OS: Windows 11 10.0.26100
  CPU: (8) x64 Intel(R) Core(TM) Ultra 7 258V
  Memory: 6.02 GB / 31.48 GB
Binaries:
  Node: 24.9.0 - C:\Users\hyunb\AppData\Local\fnm_multishells\35956_1759867104840\node.EXE
  Yarn: 1.22.22 - C:\Users\hyunb\AppData\Local\fnm_multishells\35956_1759867104840\yarn.CMD
  npm: 11.6.0 - C:\Users\hyunb\AppData\Local\fnm_multishells\35956_1759867104840\npm.CMD
  pnpm: 10.18.1 - C:\Users\hyunb\AppData\Local\fnm_multishells\35956_1759867104840\pnpm.CMD
  Deno: 2.4.0 - C:\Users\hyunb\.deno\bin\deno.EXE
Browsers:
  Chrome: 141.0.7390.55
  Edge: Chromium (140.0.3485.54)
  Firefox: 143.0.4 - C:\Program Files\Mozilla Firefox\firefox.exe
npmPackages:
  @sveltejs/adapter-auto: ^6.1.1 => 6.1.1
  @sveltejs/kit: ^2.46.2 => 2.46.2
  @sveltejs/vite-plugin-svelte: ^6.2.1 => 6.2.1
  svelte: ^5.39.10 => 5.39.10
  vite: ^7.1.7 => 7.1.7

Severity

blocking an upgrade

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions