Skip to content

Commit

Permalink
fix(ContextPads): don't show context pads when disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
marstamm committed Jan 30, 2023
1 parent 38bdeb4 commit 9f1dc59
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/features/context-pads/ContextPads.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function ContextPads(
this.registerHandler('bpmn:Activity', TriggerHandler);

eventBus.on(TOGGLE_MODE_EVENT, LOW_PRIORITY, context => {
const active = context.active;
const active = this._active = context.active;

if (active) {
this.openContextPads();
Expand Down Expand Up @@ -136,6 +136,10 @@ ContextPads.prototype.getHandlers = function(element) {

ContextPads.prototype.openContextPads = function(parent) {

if (!this._active) {
return;
}

if (!parent) {
parent = this._canvas.getRootElement();
}
Expand Down

0 comments on commit 9f1dc59

Please sign in to comment.