examples: unsaved-changes guard on forms #51
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Deferred from the UX/a11y sweep.
No form in the playground guards against leaving with unsaved changes: no
onBeforeRouteLeave,beforeunloador dirty tracking inexamples/vue/srcor inForm/RecordForm. Cancel and sidebar links discard edits silently on every form.Proposal: one
useUnsavedChanges(model, snapshot)composable in the example (route guard +beforeunload), confirming through the libraryAlertDialog. Decide first whether dirty tracking belongs inRecordFormitself.