Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors not showing in FieldErrors when field name contains a dot. #210

Open
f-elix opened this issue Jan 3, 2025 · 0 comments
Open

Errors not showing in FieldErrors when field name contains a dot. #210

f-elix opened this issue Jan 3, 2025 · 0 comments

Comments

@f-elix
Copy link

f-elix commented Jan 3, 2025

Describe the bug

I had some field names containing a dot (e.g. 'selected.days') and errors for the field wouldn't show up with the FieldErrors component, even though there were in the $errors superform store. Took me a while to figure out that this was the problem. If you look at the reproduction, you can see that the errors for 'selected.days' don't show up while those for 'selected_days' do.

Not a huge problem, just thought you would like to know.

Reproduction

https://www.sveltelab.dev/b5irrkkah44mgiy

Logs

No response

System Info

System:
    OS: macOS 15.1.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 520.20 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.12.0 - ~/Library/Caches/fnm_multishells/16338_1735877799183/bin/node
    npm: 11.0.0 - ~/Library/Caches/fnm_multishells/16338_1735877799183/bin/npm
    pnpm: 9.14.3 - ~/Library/pnpm/pnpm
  Browsers:
    Chrome: 131.0.6778.205
    Safari: 18.1.1
  npmPackages:
    @sveltejs/kit: 2.15.1 => 2.15.1 
    formsnap: ^2.0.0 => 2.0.0 
    svelte: 5.16.0 => 5.16.0 
    sveltekit-superforms: ^2.22.1 => 2.22.1 
    zod: ^3.24.1 => 3.24.1

Severity

annoyance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant