Loader Indicator On Create Another Button

Hi, I have an issue here when doing extraFooterActions
->modalFooterActions(fn (CreateAction $action): array => [
$action->getModalCancelAction(__('resources.cancel')),
$action->makeModalSubmitAction(__('resources.create_another'), arguments: ['another' => true])->color('primary'),
$action->makeModalSubmitAction(__('resources.create'), arguments: ['another' => false])->color('primary')->submit($action->getLivewireCallMountedActionName()),
])
->modalFooterActions(fn (CreateAction $action): array => [
$action->getModalCancelAction(__('resources.cancel')),
$action->makeModalSubmitAction(__('resources.create_another'), arguments: ['another' => true])->color('primary'),
$action->makeModalSubmitAction(__('resources.create'), arguments: ['another' => false])->color('primary')->submit($action->getLivewireCallMountedActionName()),
])
On Create Another when I chain ->submit($action->getLivewireCallMountedActionName()), and when there is FIle Upload button shows "loading" indicator and it is disabled from click. But form modal closes afterwards which on Create Another should not do. But when i remove ->submit($action->getLivewireCallMountedActionName()), buttton loses "loading" indicator on File Upload but it keeps form open? Is there a way to keep "loading" indicator but still keep modal open after Create Another... ?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?