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:

Steps to Reproduce
- Open viewer starter
- 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;
}Source: bpmn-io/bpmn-js