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

FIX: Empty param-form should reject submit #309

Merged
merged 2 commits into from
Aug 20, 2024
Merged

FIX: Empty param-form should reject submit #309

merged 2 commits into from
Aug 20, 2024

Conversation

Lhcfl
Copy link
Contributor

@Lhcfl Lhcfl commented Aug 20, 2024

The onSubmit hook will only be triggered when the form is valid, so we
need to clear the contents of serializedData in advance in submit.
Otherwise, it may not throw a validation error.

Lhcfl added 2 commits August 20, 2024 09:59
The `onSubmit` hook will only be triggered when the form is valid, so we
need to clear the contents of `serializedData` in advance in `submit`.
Otherwise, it may not throw a validation error.
@Lhcfl Lhcfl marked this pull request as ready for review August 20, 2024 02:04
Copy link
Contributor

@nattsw nattsw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tests!

@Lhcfl Lhcfl merged commit 6d17974 into main Aug 20, 2024
5 checks passed
@Lhcfl Lhcfl deleted the param-input-fix branch August 20, 2024 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants