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.
This commit is contained in:
shancds
2025-07-08 12:59:31 +05:30
parent ee6055934c
commit e2e57fbf26

View File

@@ -199,7 +199,10 @@ const KanbanGroup: React.FC<KanbanGroupProps> = memo(({
setIsEditable(true); setIsEditable(true);
setShowDropdown(false); setShowDropdown(false);
setTimeout(() => { setTimeout(() => {
inputRef.current?.focus(); if (inputRef.current) {
inputRef.current.focus();
inputRef.current.select(); // Select all text on focus
}
}, 100); }, 100);
}; };