Skip to content

Code Insights: Fix bad DnD events on view card action panel

Administrator requested to merge vk/fix-context-menu-missing-click into main

Created by: vovakulikov

Closes https://github.com/sourcegraph/sourcegraph/issues/27031

Context

The problem: React-grid-layout and component listen to all DnD start-like events such as clicks or mouse down events on view (code insights card) components. Because of that click on clickable elements within a card can lead to starting DnD flow hence we see red flashing and grid rerender.

View card component should catch click on clickable elements within a card to avoid starting DnD flow for this card.

Merge request reports

Loading