autofocus() not working

Hello,

I have this on a resource class:
public static function form(Form $form): Form
    {
        return $form
            ->schema([
                TextInput::make('title')->required()->maxLength(255)->autofocus(),
                Hidden::make('owner_id')->default(auth()->id()),
            ]);
    }


I have a page action on the list resource page for creating new resources that uses the pre-defined CreateAction class. could that be preventing it? let me know if you need more info, cheers.
Was this page helpful?