Alert the user when navigating away with unsaved changes
Alert the user when navigating away with unsaved changes
Use beforeunload
to show a browser default message when the form has been changed, and the user tries to navigate away.
Add a formchanged
data property in setup() using ref.
Bug: T365161