Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STATE: UploadField with image always triggers "save" prompt #1325

Open
mikey-harveycameron opened this issue Jan 23, 2023 · 0 comments
Open

Comments

@mikey-harveycameron
Copy link

The UploadField works fine except if an image exists, the form is always marked as dirty, even when nothing has changed. It means navigating away from the edit page always triggers an "Are you sure?" prompt.

Seems to be an issue with the getSchemaStateDefaults data passed to React, the react code assumes it is dirty and marks the form with the "changed" class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants