-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Version 1.7 metaboxes refresh and break functionality #3523
Comments
@vinnyusestrict I'm having difficult replicating this problem. The extended settings never refreshes for me. Can you shed any further light on whether it has happened more recently? And what you were doing? Thanks. |
I'm getting a similar issue to this using ACF with the Flexible Content Functionality. |
I guess that's an issue related to the "auto-save" feature because any post save refreshes the metaboxes. But that's independent of the changes introduced in the "1.7" release. Options we have:
|
@ephox-mogran, Sorry, I don't know why mine refreshes or how to force yours to refresh. @youknowriad, another option is to auto-save via ajax without reloading the area. How come the Classic editor auto-saves without reloading the whole page? Does it not save the custom metaboxes as well? |
We're already auto-saving via AJAX, but I think we are assuming that the metaboxes HTML may change after save so that's why we're also updating the HTML, maybe we can just drop the HTML update. cc @BE-Webdesign |
While I do suspect this is caused by auto-save, an auto-save in Gutenberg is more-or-less equivalent to a full "Save Draft" in the classic editor, in which case a refresh (more accurately, full page reload) would be expected. The difference is that in Gutenberg we are more aggressive with draft saves, since we expect to not have to do a full page reload, but metaboxes don't always work well within this assumption. |
Issue Overview
My plugin adds a metabox to the Extended Settings side area. It contains a single input field and a get button, which triggers ajax actions to load information within (keyword information). However, the Extended Settings area refreshes even if there's a fetch going on, which basically aborts whatever was happening and reloads the metabox.
After spending 2 weeks getting my plugin to work with the iframes only to see them dropped (thankfully) in v1.7, I'm hesitant to do any work to accommodate for this quirk.
Also, I'm not sure what triggers the Extended Settings refresh, as it seems quite random. I've been editing the title and body of the test post in the hopes of getting the refresh to happen, but one thing I have not done is click publish or save draft..
Steps to Reproduce (for bugs)
Expected Behavior
The settings area should not be refreshed automatically, just like they're not in the classic builder.
Current Behavior
The bug causes the input field to be emptied, effectively negating any work that the user has done before saving.
Possible Solution
Screenshots / Video
Related Issues and/or PRs
Todos
The text was updated successfully, but these errors were encountered: