-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Cannot undo element removal: Cannot read properties of undefined (reading 'appendChild')
#1676
Comments
@nikku in currents planning we were not able to assign this. Are you able to tackle? If not, plaese move to backlog / repropose next time. |
Looking into this today and will move to backlog unless I#m able to crack this. |
Root cause of this issue is a buggy |
The Root cause is not the DataStore behavior but our This is related to the delete order. If you manually select the Comment first, then the participant, the delete operation can be reverted. If we select+A, the behavior is as follows:
On redo, we try to insert the element into the participant, which is not yet present. Solution Sketches
Alternatives considered
|
The tests do not apply to the solution we implemented here. We do not want to remove the Data Store with the last participant but set the new parent correctly. Let's close the PR |
@marstamm Could you investigate a follow-up quirk visualized in the following screen capture? As you can see as we remove the participant the whole viewport seems to jump (test.bpmn.txt). |
This is because we replace the root element, which automatically resets the viewbox. I'll check what we do when creating a collaboration to keep the existing viewbox and apply it here as well |
Describe the Bug
Removing complex diagram and reverting that change via undo triggers the following error:
Steps to Reproduce
Expected Behavior
Undo works reliably.
Environment
The text was updated successfully, but these errors were encountered: