How to disable ->unsavedChangesAlerts() for a single form?
How can I disable
->unsavedChangesAlerts()
for a single Action in my panel? The feature is great, however I have a form I use to do some redirections and ->unsavedChangesAlerts()
is causing problems.
The setting itself is set in the Filament provider, but how can I disable it? Can it be done on the $form? or with Javascript?2 Replies
Solution
Maybe using this in the page?
That works! I have to put it in the <resource>/Pages/<resource>Edit.php
Will check on the Actions next, but this was brilliant, thank you @Leandro Ferreira!