Hi everyone! I posted this over on Github issues but I realise now this is probably a better place for the conversation…
I’m experiencing a weird issue I don’t know how to debug. You can see it for yourself here: https://devvelo.com/users/sign_up
If you get any error when submitting the form (for example, a password too short or confirmation doesn’t match password), the form is re-rendered with the error message but the input itself is removed from the DOM. If you inspect the response, you can see the input is returned as part of the 422 response, but Turbo chooses not to render it / to remove it.
Disabling Turbo on the form causes it to behave as expected.
This is a standard Rails FormBuilder field, so it is wrapped with a .field_with_errors
in the response - might this have something to do with it? Have I made some silly mistake? What tools would you use to debug this?
Thanks so much in advance for your help!