-
Notifications
You must be signed in to change notification settings - Fork 25
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
Hidden Fields not submitting with Fetcher #250
Comments
Do you have a |
added however, now I'm running into a new issue I'm trying to decorate all my form components with a hidden field which we want across all of our forms, like so
then in consumer:
but when I try to use the form, it seems like it's not getting wired up correctly, mainly. the form is not submitting to |
That's a strange behavior. I can't see why creating this abstraction would make the action stop working. While we figure things out, a few things I noticed in your code:
Also, because the Lastly, isn't sending the user id as a hidden input on the form a security breach? Unless you have an additional layer of security on your action (which would make sending the user unnecessary), anyone could use the browser inspector to submit things as a different user. Am I missing something here? |
ah, got it, thanks! yea, this is just a temporary solution in a dev environment while a more robust auth solution is being worked on. won't be the case once it goes to prod. but good catch 🫡 |
Awesome! About the action being wrong: if you use |
hmm, strange -- it does not work! however, I'm pretty sure it used to so I'll try to replicate so now I'm required to pass the action the fetcher before it's given to the form as prop |
Hello! I have a remix-forms
Form
setup like soIt works great except for the fact that the hidden
conditionEventType
field is not being sent to the action -- only the inputs that are registered with theregister
function fromreact-hook-forms
areAm I doing something wrong here?
The text was updated successfully, but these errors were encountered: