AndreyCurious opened a new pull request, #4036: URL: https://github.com/apache/incubator-kie-tools/pull/4036
Fixes apache/incubator-kie-issues#2413 ## What Custom task palette items did not receive the `onDragEnd` handler that every standard palette element in `BpmnPalette` uses to clear the `newNodeProjection`. As a result, cancelling a custom-task drag (pressing Esc, or releasing outside a valid drop target) left a "ghost" preview node on the canvas. This change passes `onDragEnd` to `CustomTasksPalette` and attaches it to the draggable item, mirroring the behavior of the standard palette elements. ## How to verify 1. Open the BPMN Editor with a custom task available in the palette. 2. Start dragging a custom task and cancel it (press Esc, or release outside the canvas). 3. Before: a ghost node remains on the canvas. After: nothing is left behind. No new files and no public API change (internal prop wiring only). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
