apostrophe icon indicating copy to clipboard operation
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.

Open jth- opened this issue 10 years ago • 1 comments

This creates some false positive 'Discard your changes' confirm dialogs. The change events during initialization should not propagate up.

jth- avatar May 21 '16 12:05 jth-

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.

boutell avatar Nov 05 '26 19:11 boutell