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:
@@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user