Losing autofocus on inputs when back-and-forthing in a browser
This seems to be a persisting issue based on my search https://www.answeroverflow.com/m/1142039778196455424 , but I don't know how to solve it.
Basically, when using wire:navigate on hard refresh the autofocus is correctly set as it should be on the input I put an autofocus attribute on.
However, if I go back with the browser back button and then forth, the focus is not there on the input in my form.
Is there any solution or workaround you guys use for this issue?
I have tried a vanilla
<input type="text" name="hello" id="hello" autofocus />
but it's still the same.Autofocus not working - Filament
I have used the ->autofocus() in the main field of the form, but when I click on CREATE button, the form appears but the field is not focused at all. Is is happening to me in all resources.
Any idea, please?
0 Replies