Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autofocus not working on createOptionForm #9382

Closed
pablozagni opened this issue Oct 30, 2023 · 2 comments
Closed

Autofocus not working on createOptionForm #9382

pablozagni opened this issue Oct 30, 2023 · 2 comments

Comments

@pablozagni
Copy link

Package

filament/filament

Package Version

^3.0-stable

Laravel Version

^10.10

Livewire Version

^3

PHP Version

^8.1

Problem description

Autofocus doesn't work on createOptionForm

 return $form
        ->schema([
            TextInput::make('name')
                ->autofocus()
                ->label('Nombre')
                ->required(),
            Select::make('sector_id')
                ->label('Sector')
                ->options(Sector::orderBy('name')->pluck('name', 'id'))
                ->searchable()
                ->required()
                ->createOptionForm([
                    TextInput::make('name')
                        ->label('Nombre')
                        ->autofocus()
                        ->unique(ignoreRecord: true)
                        ->required(),
                ]),
        ]);

Expected behavior

Cursor on text input after modal pop up

Steps to reproduce

None

Reproduction repository

none

Relevant log output

No response

@github-actions
Copy link

Hey @pablozagni! We're sorry to hear that you've hit this issue. 💛

However, it looks like you forgot to fill in the reproduction repository URL. Can you edit your original post and then we'll look at your issue?

We need a public GitHub repository which contains a Laravel app with the minimal amount of Filament code to reproduce the problem. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private / confidential, since we want a link to a separate, isolated reproduction. That would allow us to download it and review your bug much easier, so it can be fixed quicker. Please make sure to include a database seeder with everything we need to set the app up quickly.

Also, it doesn't look like you've provided much information on how to replicate the issue. Please edit your original post with clear steps we need to take.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 30, 2023
@github-project-automation github-project-automation bot moved this from Todo to Done in Roadmap Oct 30, 2023
@amandine16
Copy link

I have the same request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

2 participants