Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make formAction available on Button component #279

Closed
Ibabalola opened this issue Mar 24, 2022 · 0 comments
Closed

Make formAction available on Button component #279

Ibabalola opened this issue Mar 24, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Ibabalola
Copy link
Contributor

Ibabalola commented Mar 24, 2022

Is your feature request related to a problem? Please describe.
formAction is not available on Button, which means with the use of this button users will not be able to change the action of the form that the button is within:

for example:

function SomeComponent() {
  return (
    <button
      formAction={useFormAction("destroy")}
      formMethod="post"
    >
      Delete
    </button>
  );
}

Screenshot 2022-03-24 at 14 32 01

Describe the solution you'd like
Make form action available to the component

@Ibabalola Ibabalola added the enhancement New feature or request label Mar 24, 2022
@daniele-zurico daniele-zurico added this to the 0.5 milestone May 13, 2022
@Ibabalola Ibabalola assigned Ibabalola and ellietms and unassigned Ibabalola Jun 10, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants