Require confirmation modal on submit action
Is it possible to trigger a confirmation modal from an action that submits a form? Adding
requireConfirmation()
appears to have no effect if submit()
is used. The docs only mention it not working when using a url()
action, but I assume the same is true with a submit()
action?
Reading through the source of Action
, MountableAction
, CanSubmitForm
and CanOpenModal
, I've not been able to figure out why it's not being called so far.3 Replies
Solution
Beauty. Thanks.
$this->data
probably