Skip to content

Add mute comment for stopPropagation at insight description

Administrator requested to merge mute-a11y-error-at-insight into main

Created by: vovakulikov

This PR is about to fix our problem with a11y linting at Insight page.

A bit context about stopPropagation at description insight component.

Since we use react-grid-layout for build draggable insight cards at insight dashboard to support text selection within insight card at InsightDescription component we have to capture mouse event to prevent all action from react-grid-layout library which will prevent default behavior and the text will become unavailable for selection

This element where we use stopPropagation is not about interactions (and we can't use some tag like button because this is not) and that's why linter is telling that thing is a problem but according thing above we have to have it for now.

Merge request reports

Loading