From e2e57fbf266529e8b0978c64d374bd93b61c7a20 Mon Sep 17 00:00:00 2001 From: shancds Date: Tue, 8 Jul 2025 12:59:31 +0530 Subject: [PATCH] fix(KanbanGroup): enhance input focus behavior to select text on focus - Updated the focus handling in KanbanGroup to select all text in the input field when focused, improving user experience during task editing. --- .../EnhancedKanbanBoardNativeDnD/KanbanGroup.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/worklenz-frontend/src/components/enhanced-kanban/EnhancedKanbanBoardNativeDnD/KanbanGroup.tsx b/worklenz-frontend/src/components/enhanced-kanban/EnhancedKanbanBoardNativeDnD/KanbanGroup.tsx index 24b42c04..23b6613a 100644 --- a/worklenz-frontend/src/components/enhanced-kanban/EnhancedKanbanBoardNativeDnD/KanbanGroup.tsx +++ b/worklenz-frontend/src/components/enhanced-kanban/EnhancedKanbanBoardNativeDnD/KanbanGroup.tsx @@ -199,7 +199,10 @@ const KanbanGroup: React.FC = memo(({ setIsEditable(true); setShowDropdown(false); setTimeout(() => { - inputRef.current?.focus(); + if (inputRef.current) { + inputRef.current.focus(); + inputRef.current.select(); // Select all text on focus + } }, 100); };