Autofocus not working

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?
image.png
Was this page helpful?