Show button loading on custom action button

The loading indicator is shown if I use ->action() but not with ->submit(). How can i show it using ->submit()?
Was this page helpful?