Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Fix: cannot interact with DashCard actions panel while in edit mode on mobile devices (#64356)

Jakub Chodorowicz0fee338d56a3
diff --git a/frontend/src/metabase/dashboard/components/DashCard/DashCardActionsPanel/DashCardActionsPanel.tsx b/frontend/src/metabase/dashboard/components/DashCard/DashCardActionsPanel/DashCardActionsPanel.tsx
index 5a1a3610e0c..d746b54a04e 100644
--- a/frontend/src/metabase/dashboard/components/DashCard/DashCardActionsPanel/DashCardActionsPanel.tsx
+++ b/frontend/src/metabase/dashboard/components/DashCard/DashCardActionsPanel/DashCardActionsPanel.tsx
@@ -338,6 +338,7 @@ function DashCardActionsPanelInner({
top={0}
right="20px"
data-testid="dashboardcard-actions-panel"
+ data-dontdrag // allows to interact with the actions panel while in the edit mode
onMouseDown={onMouseDown}
>
<Box className={S.DashCardActionButtonsContainer} component="span">
diff --git a/frontend/src/metabase/dashboard/components/grid/GridLayout.tsx b/frontend/src/metabase/dashboard/components/grid/GridLayout.tsx
index 2ab5137aeef..2665700ed50 100644
--- a/frontend/src/metabase/dashboard/components/grid/GridLayout.tsx
+++ b/frontend/src/metabase/dashboard/components/grid/GridLayout.tsx
@@ -234,6 +234,7 @@ export function GridLayout<T extends { id: number | null }>(
onDragStop={enableTextSelection}
onResizeStart={disableTextSelection}
onResizeStop={enableTextSelection}
+ draggableCancel="[data-dontdrag]"
>
{children}
</ReactGridLayout>