apostrophe
apostrophe copied to clipboard
[apostrophe-schemas] Date field is currently bubbling up a change event on initialization, causing the unsavedChanges field to be true before actually editing a form.
This creates some false positive 'Discard your changes' confirm dialogs. The change events during initialization should not propagate up.
Closing as obsolete. This was filed against the 2.x jQuery schema editor. In Apostrophe 4.x, the "unsaved changes" check compares field values (schema/ui/apos/lib/detectChange.js) rather than listening for change events, and it treats empty and null values as equal. A date field initializing no longer triggers a false "discard your changes" prompt.