Hello everyone,
we have build a custom variant of bpmn.io based on the example properties-panel-extension. It involves custom ServiceTasks with custom properties and is causing me a bit of a headache.
Problem
When I edit a property on my custom panel tab, commandStack.changed does not trigger. The edit is visible and persists over selecting a different element, but does not appear when exporting to .bpmn. If I then add another element or edit something on the general tab commandStack.changed triggeres and the export contains the change made earlier as well.
What I’ve tried so far
I’ve compared our code to the aforementioned example and tried to reproduce it in a Codesandbox, but to no avail.
What I’m looking for
Since I can’t reproduce the bug in a Codesandbox and I am not free to share the full code of our application with you, I’m mostly looking to understand the principles here. How is commandStack.changed triggered after a change in the properties panel and how could one disable this (so where could I have gone wrong).