Skip to content

[Remote Function] form not clear validation error #15054

@RoxDevvv

Description

@RoxDevvv

Describe the bug

I have a dialog that destroys the form when it closes, but when I reopen it, the validation issues are still there. I expected something like createPost.fields.reset() to clear the issues.
How can I fully reset the validation state when reopening the dialog?

Reproduction

{#each createPost.fields.content.issues() as issue}
<p class="issue">{issue.message}</p>
{/each}

Logs

System Info

System:
    OS: Windows 11 10.0.26200
    CPU: (12) x64 AMD Ryzen 5 3600 6-Core Processor
    Memory: 25.31 GB / 47.92 GB
  Binaries:
    Node: 24.11.1 - C:\Program Files\nodejs\node.EXE
    npm: 11.6.4 - C:\Users\GameDev\AppData\Roaming\npm\npm.CMD
  Browsers:
    Edge: Chromium (140.0.3485.54)
    Internet Explorer: 11.0.26100.7309
  npmPackages:
    @sveltejs/adapter-auto: ^7.0.0 => 7.0.0
    @sveltejs/adapter-node: ^5.4.0 => 5.4.0
    @sveltejs/kit: ^2.47.1 => 2.48.4
    @sveltejs/vite-plugin-svelte: ^6.2.1 => 6.2.1
    svelte: ^5.41.0 => 5.43.6
    vite: ^7.1.10 => 7.2.2

Severity

annoyance

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