->autofocus() doesn't make any effect when ->sidebarCollapsibleOnDesktop() option enabled in AdminPanelProvider
Expected behavior
Autofocus on field on page/form open
Steps to reproduce
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->sidebarCollapsibleOnDesktop()
...
public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\TextInput::make('foo')
->autofocus(),
Forms\Components\TextInput::make('bar')
]);
}
Please use the autofocus-bug branch in the reproduction repository.
Package
filament/filament
Package Version
v3.0.39
Laravel Version
v10.22.0
Livewire Version
v3.0.1
PHP Version
8.1
Problem description
->autofocus()
doesn't make any effect when->sidebarCollapsibleOnDesktop()
option enabled inAdminPanelProvider
Expected behavior
Autofocus on field on page/form open
Steps to reproduce
Please use the autofocus-bug branch in the reproduction repository.
Reproduction repository
https://github.com/njxqlus/filamentphp-bug-report/tree/autofocus-bug
Relevant log output
No response