From 31726e4a73ef2e79eaff01a1e1b349c0076f81ca Mon Sep 17 00:00:00 2001 From: Oscar Kilhed Date: Thu, 23 Oct 2025 10:40:08 +0200 Subject: [PATCH] Dynamic dashboard: Click row title should not collapse row in edit (#112786) click title should not collapse row in edit --- .../scene/layout-rows/RowItemRenderer.tsx | 49 ++++++++++--------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/public/app/features/dashboard-scene/scene/layout-rows/RowItemRenderer.tsx b/public/app/features/dashboard-scene/scene/layout-rows/RowItemRenderer.tsx index 2b5f3bcfca2..d35eb19c33c 100644 --- a/public/app/features/dashboard-scene/scene/layout-rows/RowItemRenderer.tsx +++ b/public/app/features/dashboard-scene/scene/layout-rows/RowItemRenderer.tsx @@ -51,6 +51,29 @@ export function RowItemRenderer({ model }: SceneComponentProps) { return ; } + const titleElement = ( + + {!model.hasUniqueTitle() && ( + + + + )} + {title} + {isHeaderHidden && ( + + + + )} + + ); + return ( {(dragProvided, dragSnapshot) => ( @@ -110,31 +133,9 @@ export function RowItemRenderer({ model }: SceneComponentProps) { data-testid={selectors.components.DashboardRow.title(title!)} > - - {!model.hasUniqueTitle() && ( - - - - )} - {title} - {isHeaderHidden && ( - - - - )} - + {!isEditing && titleElement} + {isEditing && titleElement} {isDraggable && } )}