You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When editing Custom Fields on the relevant metabox of a page, the update button is not activated unless the user clicks inside one of the fields and types something. This means that if the value of a Custom Field is changed using another way, the user won't get the chance to update the page unless he does a change that will activate the Update button.
Steps to Reproduce (for bugs)
Install Toolset Types
Create a Post Field Group
Add an Image custom field and allow multiple instances of this field.
Add a Date custom field.
Navigate to the Page edit page that uses Gutenberg, and try to add an image to the image gallery.
Try to pick a date using the date picker.
Expected Behavior
The expected behavior would be that when the image is inserted, or the date was chosen through the datepicker the Update button should have been enabled.
On the classic editor, the Update button is always enabled and active. For Gutenberg, it's only activated when there is a change in the edited post/page. Is there a JS event or something else that could notify the editor and the button that there is an unsaved change in the form?
Confirming this is the case in Gutenberg 1.6 with ACF meta boxes as well. Opening an existing post and editing meta box content does not trigger the Update button. I have to click into the Gutenberg editor in order for the update Button to become active.
Thank you for the report. This ties into the "Dirty Detection" for Gutenberg. There were some recent changes to dirty detection, and most likely there was a regression somewhere in there. Handling this detection is also challenging for meta boxes, as they have been developed assuming a request response pattern, as opposed to a client rich app. Depending on how these pieces use the DOM, it can become tricky to detect whether anything has changed.
Issue Overview
When editing Custom Fields on the relevant metabox of a page, the update button is not activated unless the user clicks inside one of the fields and types something. This means that if the value of a Custom Field is changed using another way, the user won't get the chance to update the page unless he does a change that will activate the
Update
button.Steps to Reproduce (for bugs)
Page edit
page that uses Gutenberg, and try to add an image to the image gallery.Expected Behavior
The expected behavior would be that when the image is inserted, or the date was chosen through the datepicker the
Update
button should have been enabled.Current Behavior
The
Update
button is not enabled unless you do another action that will enable it.I'm also adding a link to a video showing the current behavior.
https://www.useloom.com/share/625caa872c944e2e94e4826cba8b1e88
The text was updated successfully, but these errors were encountered: