bpmn-io / diagram-js

A toolbox for displaying and modifying diagrams on the web.
MIT License
1.71k stars 418 forks source link

Simplify search pad preselect #947

Closed nikku closed 2 weeks ago

nikku commented 3 weeks ago

Proposed Changes

I traced a bug that caused the preselect marker class not being removed from an element. In the process I found that the whole marker logic we introduced via https://github.com/bpmn-io/diagram-js/pull/913 is not necessary, after all: We use standard selection, and attach a djs-search-open marker to the diagram container; this is enough for us to handle "special selection" using plain CSS:

capture iCAZbM_optimized

The change in action, testing against bpmn-js.

Checklist

To ensure you provided everything we need to look at your PR:

nikku commented 2 weeks ago

Released with diagram-js@15.2.0.