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

Submitting without tainting a field doesn't show errors if cancel is called #438

Open
macmillen opened this issue May 28, 2024 · 3 comments

Comments

@macmillen
Copy link

Description
Submitting without tainting a field doesn't show errors if cancel is called inside the onUpdate event.

If applicable, a MRE
https://www.sveltelab.dev/so7vxl58n4cb4ki

@macmillen macmillen added the bug Something isn't working label May 28, 2024
@ciscoheat
Copy link
Owner

Client-side validation runs before onUpdate, so it will show up even when cancel is called.

@macmillen
Copy link
Author

@ciscoheat Is that intended? What's the reason for that?

@ciscoheat
Copy link
Owner

Client-side validation runs as default on input and blur of the fields, so it has nothing to do with the submit process. Check validationMethod for options: https://superforms.rocks/concepts/client-validation#validationmethod

@ciscoheat ciscoheat removed the bug Something isn't working label Jul 29, 2024
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

2 participants