From 42d350ef27b52e3206bbf9aa653b48486dabd190 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Tue, 17 Dec 2024 06:22:29 -0800 Subject: [PATCH] Disallow drag-n-drop when editing request name --- src-web/components/Sidebar.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src-web/components/Sidebar.tsx b/src-web/components/Sidebar.tsx index 00f0b964..c01486d9 100644 --- a/src-web/components/Sidebar.tsx +++ b/src-web/components/Sidebar.tsx @@ -680,6 +680,8 @@ function SidebarItem({ () => ({ type: ItemTypes.REQUEST, item: () => { + // Cancel drag when editing + if (editing) return null; onDragStart(itemId); return { id: itemId, itemName }; }, @@ -943,7 +945,7 @@ function SidebarItem({