camunda-bpmn-js 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -93879,7 +93879,7 @@
93879
93879
  const [variables, setVariables] = l$1([]);
93880
93880
  const eventBus = useService('eventBus');
93881
93881
  y(() => {
93882
- const callback = async () => {
93882
+ const extractVariables = async () => {
93883
93883
  const variables = await getVariablesForElement_1(bo);
93884
93884
  setVariables(variables.map(variable => {
93885
93885
  return {
@@ -93888,6 +93888,12 @@
93888
93888
  };
93889
93889
  }));
93890
93890
  };
93891
+
93892
+ // The callback must return undefined, so the event propagation is not canceled.
93893
+ // Cf. https://github.com/camunda/camunda-modeler/issues/3392
93894
+ const callback = () => {
93895
+ extractVariables();
93896
+ };
93891
93897
  eventBus.on('commandStack.changed', callback);
93892
93898
  callback();
93893
93899
  return () => {