Modal Action halt and autofocus
I have a modal action with one input field. When opening the modal, it should autofocus this input. After the action is done, it should reset the form and autofocus the input again.
With
$form->fill()
and $action->halt()
I can clear the form and keep it open, but the input isn't autofocused?
Solution:Jump to solution
try this
```php
->action(function (array $data, self $livewire, Action $action, Form $form) {
$form->fill();...
2 Replies
Solution
try this
Thanks! Thats exactly what I was looking for !