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

Question: does remix-hook-form respect the action I pass to the <Form /> tag? #141

Closed
zackperdue opened this issue Dec 16, 2024 · 3 comments

Comments

@zackperdue
Copy link

zackperdue commented Dec 16, 2024

I'm trying to submit the form but I get 504 method not allowed. It seems like it's submitting to the current route which doesnt have an action.

If I use submitConfig and pass the method and action there it works correctly.

Does this still work without javascript?

@melanieseltzer
Copy link
Contributor

Can confirm, I'm also running into this. There's an existing thread here: #132 (I've posted a repro in there, just with action but I'm assuming the others are not getting inherited from Form also).

@AlemTuzlak
Copy link
Contributor

V6+ does, v5 doesn't, you need to define it via submitConfig.

@AlemTuzlak
Copy link
Contributor

you'd need to define it on the Form component as well for it to work without JS

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

No branches or pull requests

3 participants