Hi Greenshift Team,
I would like to report an issue regarding the Undo (Ctrl+Z / Cmd+Z) behavior in the Gutenberg editor when working with Greenshift blocks.
Issue Summary: While standard Gutenberg actions (such as editing plain text in Heading/Text blocks or deleting/moving a Container box) correctly revert upon pressing Undo, changes made to CSS/style properties on advanced blocks do not revert.
Steps to Reproduce:
- Add a Greenshift Container / Row block to the editor.
- Open the sidebar settings and add a border (e.g., solid 2px black) or modify spacing/styling.
- Press
Ctrl+Z(orCmd+Z) to undo the change.
Observed Behavior: The border style remains applied on the canvas (and/or the style generator fails to re-render to the previous state), meaning the visual CSS change is not reverted.
Expected Behavior: Pressing Undo should immediately revert both the inspector control values and the dynamically rendered CSS rules back to their previous state.
It seems the undo stack properly tracks core block tree events and text mutations, but the custom CSS attribute updates/dynamic style generation bypass or desync from the @wordpress/data history stack.
Could you please look into how style attributes and dynamic CSS re-rendering hook into the editor’s undo history?
Thanks for your support!
Responses