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

Submit Form does not send the event #749

Closed
AlbertSabate opened this issue Feb 7, 2025 · 1 comment · Fixed by #751
Closed

Submit Form does not send the event #749

AlbertSabate opened this issue Feb 7, 2025 · 1 comment · Fixed by #751
Assignees
Labels
bug Something isn't working high regression

Comments

@AlbertSabate
Copy link
Collaborator

AlbertSabate commented Feb 7, 2025

Describe the bug
<form onSubmit={submitForm}>

async function submitForm(
    e: Omit<SubmitEvent, 'currentTarget'> & {
      readonly currentTarget: HTMLFormElement;
    } & {
      formData: FormData;
    },
  ) {
    console.log(e);
  }

e is undefined. submitForm is a server action.

Expected behavior
Should contain the event with formData in it.

Verified that in version 0.2.5-canary.4

Works as expected.

@aralroca
Copy link
Collaborator

aralroca commented Feb 7, 2025

I'm going to take a look at this! Thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high regression
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants