F
Filament7mo ago
Gush

CreateAnother Button closing modal

->extraModalFooterActions(fn (Action $action): array => [
$action->makeModalSubmitAction('createAnother', arguments: ['another' => true]),
])
->extraModalFooterActions(fn (Action $action): array => [
$action->makeModalSubmitAction('createAnother', arguments: ['another' => true]),
])
how can i prevent this from closing modal?
4 Replies
Gush
GushOP7mo ago
return CreateAction::make('taskcNew')
->model(TimesheetTasks::class)
->label(__('nlmn-timesheet-module::timesheet.calendar.calendar_create'))
->form($this->formArray())
->modalSubmitActionLabel(__('nlmn-timesheet-module::timesheet.submit'));
return CreateAction::make('taskcNew')
->model(TimesheetTasks::class)
->label(__('nlmn-timesheet-module::timesheet.calendar.calendar_create'))
->form($this->formArray())
->modalSubmitActionLabel(__('nlmn-timesheet-module::timesheet.submit'));
Temporary solution
LeandroFerreira
LeandroFerreira7mo ago
You should use $action->halt();
Want results from more Discord servers?
Add your server