azgasim/filament-unsaved-changes-modal
Replaces Filament's browser confirmation dialog with a native Filament modal when leaving a dirty form. Works with SPA and full-page navigation, using the same dirty-state rules as unsavedChangesAlerts(). Requires Filament 5.3.5+ and PHP 8.2+.
Added French (fr) translation support for the unsaved changes modal.
Thanks to @OlinB for the contribution!
Added Kurdish Sorani (ckb) translation support for the unsaved changes modal.
Thanks to @Hamoi1 for the pull request.
filament/filament ^5.3.5 (patched filament/tables; avoids Composer security audit blocks on older 5.x under prefer-lowest).confirm() for unsaved navigation (SPA and same-origin panel links).data-skip-unsaved-changes-modal on <a> or ancestor to skip the modal.modalWidth(), modalIcon(), modalIconColor(), stayButtonColor(), leaveButtonColor(); HeroiconResolver; DEFAULT_* and MODAL_DOM_ID.navigation.* keys).FilamentUnsavedChangesModalPlugin is final; make() uses new self.config/ from scanned paths (package config removed).config/unsaved-changes-modal.php — configure via plugin only.How can I help you explore Laravel packages today?