class Search extends Component implements HasForms, HasActions{ use InteractsWithActions; use InteractsWithForms; public function render(): View { return view('livewire.search'); } public function deleteAction(): Action { return Action::make('delete') ->requiresConfirmation() ->action(fn () => dd(1)); }}
class Search extends Component implements HasForms, HasActions{ use InteractsWithActions; use InteractsWithForms; public function render(): View { return view('livewire.search'); } public function deleteAction(): Action { return Action::make('delete') ->requiresConfirmation() ->action(fn () => dd(1)); }}
<div> {{ $this->deleteAction }}</div>
<div> {{ $this->deleteAction }}</div>
When clicking on the button, nothing happens, no confirm modal is shown. In Dev-Toolbar I see no error. Only thing I can see is that the attribute
disabled=true
disabled=true
is set for a second.
When I now remove the
->requiresConfirmation()
->requiresConfirmation()
and click again, I can see the
dd
dd
output.
Same goes for custom modals - the modal isn't show. Nothing happens: