I have multiple turbo frames that each have their own form. When submitting the form, the frame gets reloaded and replaced with a new form. However the user already moved on to the next frame/form. However, when the new frame is rendered, it focuses automatically on the first input in what was just replaced, which interrupts user experience.
I believe this is the piece of code that is causing this behavior:
There is a boolean that is controlling the behavior, but I don’t know how to change it.
Is there a nice configurable way to disable autofocus on render?