When calling defaults() on a form, the isDirty state does not reset as expected. This occurs because the watcher only monitors changes to the form reactive properties, while the defaults() method modifies the default properties, which are not part of the watched form. As a result, isDirty is never recalculated and remains true.
This fix ensures that isDirty accurately reflects the form's state after resetting to defaults similarly to how the React adapter does it.
When calling
defaults()
on a form, theisDirty
state does not reset as expected. This occurs because the watcher only monitors changes to theform
reactive properties, while thedefaults()
method modifies the default properties, which are not part of the watchedform
. As a result,isDirty
is never recalculated and remainstrue
.This fix ensures that
isDirty
accurately reflects the form's state after resetting to defaults similarly to how the React adapter does it.Fixes #1862.