From 2c28ae5e705575d182b654503d3062b712e16c83 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Thu, 10 Nov 2022 22:17:41 +0100 Subject: [PATCH] [v9.2.x] Canvas: Improve disabled inline editing UX (#58614) Canvas: Improve disabled inline editing UX (#58610) (cherry picked from commit fd6edbf8c5a52619f00a7e4e440e8bc93df18260) Co-authored-by: Nathan Marrs --- public/app/features/canvas/runtime/scene.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/canvas/runtime/scene.tsx b/public/app/features/canvas/runtime/scene.tsx index 5a58a43aa3a..af9a966fe3e 100644 --- a/public/app/features/canvas/runtime/scene.tsx +++ b/public/app/features/canvas/runtime/scene.tsx @@ -472,7 +472,7 @@ export class Scene { this.selecto.getSelectedTargets()[0].style.cursor = 'grabbing'; } - if (isTargetMoveableElement || isTargetAlreadySelected) { + if (isTargetMoveableElement || isTargetAlreadySelected || !this.isEditingEnabled) { // Prevent drawing selection box when selected target is a moveable element or already selected event.stop(); }