@bpmn-io/form-js-editor 1.0.0-alpha.4 → 1.0.0-alpha.5
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.
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +7 -7
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -9589,8 +9589,12 @@ class SectionModuleBase {
|
|
|
9589
9589
|
constructor(eventBus, sectionKey) {
|
|
9590
9590
|
this._eventBus = eventBus;
|
|
9591
9591
|
this._sectionKey = sectionKey;
|
|
9592
|
-
this._eventBus.on(`${this._sectionKey}.section.rendered`, () =>
|
|
9593
|
-
|
|
9592
|
+
this._eventBus.on(`${this._sectionKey}.section.rendered`, () => {
|
|
9593
|
+
this.isSectionRendered = true;
|
|
9594
|
+
});
|
|
9595
|
+
this._eventBus.on(`${this._sectionKey}.section.destroyed`, () => {
|
|
9596
|
+
this.isSectionRendered = false;
|
|
9597
|
+
});
|
|
9594
9598
|
}
|
|
9595
9599
|
|
|
9596
9600
|
/**
|
|
@@ -9625,11 +9629,7 @@ class SectionModuleBase {
|
|
|
9625
9629
|
if (this.isSectionRendered) {
|
|
9626
9630
|
callback();
|
|
9627
9631
|
} else {
|
|
9628
|
-
|
|
9629
|
-
callback();
|
|
9630
|
-
this._eventBus.off(`${this._sectionKey}.section.rendered`, onSectionRendered);
|
|
9631
|
-
};
|
|
9632
|
-
this._eventBus.on(`${this._sectionKey}.section.rendered`, onSectionRendered);
|
|
9632
|
+
this._eventBus.once(`${this._sectionKey}.section.rendered`, callback);
|
|
9633
9633
|
}
|
|
9634
9634
|
}
|
|
9635
9635
|
}
|