bpmn-io / dmn-js

View and edit DMN diagrams in the browser.
https://bpmn.io/toolkit/dmn-js/
Other
288 stars 137 forks source link

Undo-stack is lost when I drill into a decision #858

Open marstamm opened 3 months ago

marstamm commented 3 months ago

Describe the Bug

When I use the drill-down option, I loose my command stack of the DRD

Recording 2024-04-30 at 10 26 47

Steps to Reproduce

Steps to reproduce the behavior:

  1. open a DRD
  2. Add a decision + change it to decision table
  3. Open the decision table
  4. get back to DRD
  5. Press CTR+Z
  6. Nothing happens

If you report a modeling related issue, ensure you can reproduce it on demo.bpmn.io ✔️

Expected Behavior

The command stack is persisted, I can undo once I am in the DRD viewer.

Alternative: The command stack is global and I switch views when an action is performed in another element, similar to sub processes in bpmn-js

Environment

Please complete the following information:

philippfromme commented 3 months ago

I can reproduce this. With the current implementation of separate command stacks for each editor I'd at least expect to be able to undo if I didn't make any changes except for switching the editor.