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

Property Panel Undo/Redo Bugfix #413

Merged
merged 5 commits into from
Jan 13, 2025
Merged

Property Panel Undo/Redo Bugfix #413

merged 5 commits into from
Jan 13, 2025

Conversation

LucasMGo
Copy link
Contributor

Summary

Fixed the bug which occured when triggering undo/redo for metaData values in property panel (e.g. milestones)

Details

When triggering undo/redo, the event system in bpmn.js looks for changes in selected element object. The function setProceedElement for adding changes uses an in-place mechanism to write changes into element. This behaviour leads to bpmn.js not recognising changes for the element. The solution of this bug was to create a deep copy of the selected element and change attributes before transmitting this object to the event queue of bpmn.js.

This comment has been minimized.

Copy link

CLOUDRUN ACTIONS

✅ Successfully created Preview Deployment.

https://pr-413---ms-server-staging-c4f6qdpj7q-ew.a.run.app

@jjoderis jjoderis merged commit 143f92d into main Jan 13, 2025
15 checks passed
@jjoderis jjoderis deleted the property-panel-bugfix branch January 13, 2025 15:06
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