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

Partial form submission omits submitter from formData #2306

Open
adamgreg opened this issue Feb 12, 2024 · 0 comments · May be fixed by #2307
Open

Partial form submission omits submitter from formData #2306

adamgreg opened this issue Feb 12, 2024 · 0 comments · May be fixed by #2307

Comments

@adamgreg
Copy link
Contributor

When submitting a form partial using a button that has name and value attributes set, this data is not included in the form data of the request. For example:

<form use-client-nav method="POST">
<button type="submit" name="x" value="y">Submit</button>
</form>

Form data is expected to include an x field, and will do when submitted normally, but not via a partial.

I think there's an easy fix, so I'll make a quick PR now.

adamgreg added a commit to adamgreg/fresh_unocss that referenced this issue Feb 12, 2024
@adamgreg adamgreg linked a pull request Feb 12, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant