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
Problem with Inertia forms #61
Comments
I'm not sure if this will help you, but I've experienced similar weirdness like this before, and what would end up resolving things is to completely wipe out the What I do is add a "flush" script in my package.json: "scripts": {
"dev": "vite",
"build": "vite build",
"flush": "rm -rf node_modules package-lock.json && npm i && npm run dev"
}, And then whenever I want to "reboot" things as mentioned above, I simply run The other thing to verify that you are using the correct axios version (should be 1.2.0). I've been down this road a couple of times in projects wondering why the inertia forms aren't submitting/validating correctly, and the above "clean re-install" would resolve it. |
There is a problem using Inertia forms inside a modal.
When some field does not pass the validation of the request in the backend (with a Form Request, for example), the modal reloads completely and does not save the content of the fields. The
form.errors
object is also empty. UsingpreserveState
does not work either.Steps to reproduce it:
package.json:
The text was updated successfully, but these errors were encountered: