#1642·bpmn-js

Cannot select labels in viewer

Author: nikkuCreated May 3, 2022Updated Mar 10, 2026
Labelsbugbacklogspring cleaning

Describe the Bug

As a user I want to select labels in a BPMN diagram (viewer distribution). It works sometimes, but really not reliably:

capture wzmXbY_optimized

Steps to Reproduce

  1. Open viewer starter
  2. Try to select labels via double-click

Expected Behavior

All labels can reliably selected via double-click.

Environment

  • Browser: Chrome 100
  • OS: Windows
  • Library version: v9.0.1

Root cause of the issue seems to be that we stack a djs-hit rect on top of the text. Adding the following styles does workaround this issue:

.djs-hit {
  pointer-events: none;
}