Require Confirmation for form submission

Hi, When setting canSubmitForm to true on an action, the requireConfirmation has no effect as it disables the Livewire click handler and just show a sumbit button.
Action::make('save')
->requiresConfirmation()
->action(null)
->submit('save')
Action::make('save')
->requiresConfirmation()
->action(null)
->submit('save')
How could we then confirm the action on a form? Thanks!
1 Reply
mathieutu
mathieutuOP2mo ago
Actually, event setting the action manually cancels the modal:
Action::make('save')
->action('save')
->requiresConfirmation()
Action::make('save')
->action('save')
->requiresConfirmation()

Did you find this page helpful?