Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

bilalbasheer's avatar

overlay still exists after modal close

   Tables\Actions\ActionGroup::make([
                    Tables\Actions\Action::make('View Information')
                        ->color('warning')
                        ->icon('heroicon-o-information-circle')
                        ->modalFooterActions([
                            Tables\Actions\Action::make('accept')
                                ->icon('heroicon-o-check-circle')
                                ->label('Accept')
                                ->color('success')
                                ->action(function ($record) {
                                    Notification::make()
                                        ->title('Accepted successfully')
                                        ->success()
                                        ->send();

                                })->close(),
                         
                        ])
0 likes
2 replies
jaseofspades88's avatar

If you cannot explain the problem simply, you don't understand it well enough. Perhaps explain clearly the problem you are trying to fix. Nobody reads that six word title and instantly understands the context around your problem.

tisuchi's avatar

@bilalbasheer You can explicitly close the model inside the action. Can you try this?

...
->action(function ($record, $action) {
        Notification::make()
            ->title('Accepted successfully')
            ->success()
            ->send();

        $action->closeModal();  // Explicitly close the modal here
    })

BTW, I totally support @jaseofspades88 comment!

Please or to participate in this conversation.