diff --git a/src/render/BpmnPropertiesPanelRenderer.js b/src/render/BpmnPropertiesPanelRenderer.js index 24546755..9a43841a 100644 --- a/src/render/BpmnPropertiesPanelRenderer.js +++ b/src/render/BpmnPropertiesPanelRenderer.js @@ -165,7 +165,11 @@ export default class BpmnPropertiesPanelRenderer { _restoreCanvasFocus() { const canvas = this._injector.get('canvas'); - canvas && canvas.restoreFocus && canvas.restoreFocus(); + + // Only available with diagram-js >= 15.0.0 + if (canvas.restoreFocus) { + canvas.restoreFocus(); + } } _render(element) {