when modal confirmation, i click confirm and code runs but modal still appears.
this my custome page code , How make modal
do not appear after i click confirm.
public function sendingAction(): Action
{
return Action::make('sending')
->label('Kirim')
->modalHeading('Kirim Barang Masuk Tidak Bisa di Edit')
->requiresConfirmation();
}
my view custome page
<x-filament-panels::form wire:submit="kirim">
<input type="hidden" wire:model="userId" >
<div>
{{ $this->sendingAction }}
<x-filament-actions::modals />
</div>
</x-filament-panels::form>
2 Replies
Read this https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component#adding-the-form
Scroll down a bit and they highlight about modal
not work,
i change the code and work not need form in view, only inside the form, inside action