fix: ensure tooltip hides during title editing in TaskCard
- Updated TaskCard to hide the tooltip when entering title editing mode, improving user experience by preventing distractions while editing the title.
This commit is contained in:
@@ -70,6 +70,7 @@ export function TaskCard({ task, onDelete, onEdit, onUpdateTitle, compactView =
|
||||
e.stopPropagation();
|
||||
if (onUpdateTitle && !isDragging) {
|
||||
setIsEditingTitle(true);
|
||||
setShowTooltip(false);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -79,11 +80,13 @@ export function TaskCard({ task, onDelete, onEdit, onUpdateTitle, compactView =
|
||||
await onUpdateTitle(task.id, trimmedTitle);
|
||||
}
|
||||
setIsEditingTitle(false);
|
||||
setShowTooltip(false);
|
||||
};
|
||||
|
||||
const handleTitleCancel = () => {
|
||||
setEditTitle(task.title);
|
||||
setIsEditingTitle(false);
|
||||
setShowTooltip(false);
|
||||
};
|
||||
|
||||
const handleTitleKeyPress = (e: React.KeyboardEvent) => {
|
||||
|
||||
Reference in New Issue
Block a user