camunda / camunda-modeler

An integrated modeling solution for BPMN, DMN and Forms based on bpmn.io.
https://camunda.com/products/modeler
MIT License
1.47k stars 472 forks source link

`Error: A DOM element reference is required` in improved context pad #4402

Open barmac opened 1 week ago

barmac commented 1 week ago

Describe the bug

There is a new error coming from improved canvas which has been also noticed in Web Modeler.

Sentry Issue: CAMUNDA-MODELER-QH3

Steps to reproduce

Cannot reproduce yet :(

Expected behavior

No error

Environment

Additional context

Related to https://github.com/camunda/web-modeler/issues/9948

barmac commented 1 week ago

It appears that target can be non-existing in some cases: https://github.com/camunda/improved-canvas/blob/9c8a56835886772d3bf9320b0ec186ae7d39a5e5/lib/common/contextPad/ImprovedContextPad.js#L52

But I can't find code where it can be introduced.