Replies: 3 comments 2 replies
-
As mentioned here (https://github.com/inertiajs/inertia/discussions/653) I think this would be a very helpful feature as well. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Since there's already |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've started a new PR for this feature: #660 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any way to check if the current form has been modified (compared to its initial state)?
Something like the
isDirty()
Laravel method orActiveModel::Dirty
on Rails.My use case: I'd like to check if the form has been modified in order to ask for confirmation ("Are you sure you want to leave the page?") on the
onbeforeunload
event.Beta Was this translation helpful? Give feedback.
All reactions