© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Autofocus only when on desktop & action is create - Filament
F
Filament
•
3y ago
•
15 replies
Eric
Autofocus only when on desktop & action is create
i have this field
:
Forms\Components\TextInput::make('name')
->autofocus()
Forms\Components\TextInput::make('name')
->autofocus()
currently
, is auto
-focused
, but i want only it to be auto
-focused when the user is on a desktop device and the current action is the create action
Filament
Join
A powerful open-source UI framework for Laravel • Build and ship apps & admin panels fast with Livewire
20,181
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Modal Action halt and autofocus
F
Filament / ❓┊help
11mo ago
Autofocus() on modals
F
Filament / ❓┊help
2y ago
Autofocus on tabs?
F
Filament / ❓┊help
3y ago
autofocus don't work when clicking on "save and create new"
F
Filament / ❓┊help
2w ago