camunda / camunda-modeler

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

When you have a search term that does not resolve it still highlights the element that was previously searched upon. #4538

Open GeethaParthasarathy opened 1 week ago

GeethaParthasarathy commented 1 week ago

Describe the bug

When you have a search term that does not resolve it still highlights the element that was previously searched upon.

Steps to reproduce

  1. Create a simple bpmn diagram
  2. Add a search term that resolves to an element -> respective element highlighted
  3. Then add a random search term that does not resolve yet we could see that the previously highlighted element still remains highlighted.

Note: This is not the case when no element was highlighted as part of the first search term Also I used the term "user" and I am not sure how it resolved to the sequence flow

https://github.com/user-attachments/assets/2fc8ae81-b9c4-4014-b8b3-acaf8587d798

Expected behavior

When no element is resolved for a search term do not focus/highlight on any element in the canvas

Environment

OS : Mac os env : Web Modeler

Additional context

No response


Depends on https://github.com/bpmn-io/diagram-js/pull/931

philippfromme commented 1 week ago

This issue will be addressed by https://github.com/bpmn-io/diagram-js/pull/931.