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

Would be incredible to have native support for details/summary; so they are auto-expanded on errors #498

Open
alexbjorlig opened this issue Oct 31, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@alexbjorlig
Copy link
Contributor

When building complex forms, details/summary is really awesome.

It can show/hide complex/detailed part of a large form, but things are still in the DOM.

But when it comes to error handling, details/summary elements are not expanded if they contain an error. Better illustrated with a video.

CleanShot.2024-10-31.at.19.53.45.mp4

Playground link here.

@alexbjorlig alexbjorlig added the enhancement New feature or request label Oct 31, 2024
@ciscoheat
Copy link
Owner

It seems to work to link the open attribute to $errors:

https://www.sveltelab.dev/njaj00nf276jafr

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

No branches or pull requests

2 participants