F
Filament3w 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
Gush3w 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
You should use $action->halt();
Want results from more Discord servers?
Add your server
More Posts