Skip to content

Bug: formMethod specified on the submit button doesn't override the method from useFormStatus. #33361

@levkovich2806

Description

@levkovich2806

React version: 19.1

When using formMethod on a submit button (<button type="submit" formMethod={"post"}> or <input type="submit" formMethod={"post"}>), it should override the parent form's method. However, it does not.

Steps To Reproduce

  1. Open example (link below)
  2. Click to any "Submit button"
  3. under the text input field will "method" will be shown.

Link to code example:

https://codesandbox.io/p/sandbox/react-dev-forked-ks99yw

The current behavior

Displayed method: dialog

The expected behavior

Displayed method: post

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UnconfirmedA potential issue that we haven't yet confirmed as a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions