"Create & Create Another" does not set focus again #270
Replies: 2 comments
-
I'm also looking for this option. Did you manage to solve it yet? |
Beta Was this translation helpful? Give feedback.
-
Hi @leo-unglaub I recently encountered the same issue and discovered a handy trick to refocus the input field when using "Create & Create Another" in Laravel Filament. Here’s how I handled it: Step 1: Dispatch a custom event in afterCreate()
Step 2: Listen for the event and set focus via JS
Tip: Make sure the input has the correct ID (e.g., data.name) or adjust the selector accordingly. Hope this helps anyone else facing the same issue! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
i am a big fan of the
Create & Create Another
feature. Super helpful for adding a lot of records quickly. I noticed on thing with this feature. When i open up the create dialogue the first time it get the focus set correctly and i can start typing and use tab to get to the next field. But when i hitCreate & Create Another
i have to use my mouse to set the focus.Maybe it would be usefull to set the focus automatically to the first input field.
Thanks and greetings
Leo
Beta Was this translation helpful? Give feedback.
All reactions