Any example with "onbeforeunload" for dirty form check ?

Does anyone find a solution for adding onbeforeunload when editing a resource , to prevent dirty form data loose ?
1 Reply
acroninja
acroninja2mo ago
See this trait:-
Concerns/HasUnsavedDataChangesAlert
Concerns/HasUnsavedDataChangesAlert
You have to add
->unsavedChangesAlerts()
->unsavedChangesAlerts()
to your config.

Did you find this page helpful?