When using ->mask() with a field that has unsavedChangesAlerts(), the alert Changes you made may not be saved. is always displayed when navigating away from the page, even if no changes were made.
Expected behavior
It should not show any unsaved alert if no changes are made.
Package
filament/filament
Package Version
v3.2.97
Laravel Version
v11.20.0
Livewire Version
v3.5.4
PHP Version
PHP 8.3.6
Problem description
When using
->mask()
with a field that hasunsavedChangesAlerts()
, the alert Changes you made may not be saved. is always displayed when navigating away from the page, even if no changes were made.Expected behavior
It should not show any unsaved alert if no changes are made.
Steps to reproduce
Reproduction repository (issue will be closed if this is not valid)
https://github.com/akki-io/filament-issue-unsaved-alerts
Relevant log output
Donate 💰 to fund this issue