Skip to content

fix: preserve undo / redo history for component addition#177

Merged
Koyandechirag merged 1 commit into
FOSSEE:mainfrom
Fb-JAYRAJ:fix/undo-redo-component-actions
Jun 2, 2026
Merged

fix: preserve undo / redo history for component addition#177
Koyandechirag merged 1 commit into
FOSSEE:mainfrom
Fb-JAYRAJ:fix/undo-redo-component-actions

Conversation

@Fb-JAYRAJ

Copy link
Copy Markdown
Contributor

Fixes undo/redo behavior for component add actions.

Root Cause:
Automatic image metadata synchronization (naturalWidth/naturalHeight)
was creating an extra history entry immediately after component creation,
preventing undo from reverting component additions.

Solution:
Skip history recording for metadata-only updates while preserving
undo/redo functionality for user actions such as add, move, resize,
rotate, and delete.

@Koyandechirag Koyandechirag merged commit 2eb7c07 into FOSSEE:main Jun 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants