mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-14 10:52:42 +08:00
* Do not trigger unsaved changes alert for action modals that cannot contain unsaved changes The panel-level unsaved changes alert hooked `beforeunload` whenever any action was mounted, so read-only modals such as `ViewAction`'s warned about unsaved changes that cannot exist. Mounted actions now expose a `hasUnsavedChangesAlert` flag that the client-side guard checks, which defaults to `false` for actions with a disabled schema and can be controlled per action with `unsavedChangesAlert()`. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * Fix unsaved action changes alert edge cases Co-authored-by: Amp <amp@ampcode.com> * Prevent stale unsaved action alert state Co-authored-by: Amp <amp@ampcode.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com> Co-authored-by: Dan Harrin <git@danharrin.com> Co-authored-by: Amp <amp@ampcode.com>