refactor: gantt tooltip hover (#3328)

This commit is contained in:
katherinehhh 2024-01-05 14:30:45 +08:00 committed by GitHub
parent 393b9f47c2
commit c102655317
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -214,7 +214,9 @@ export const TaskGanttContent: React.FC<TaskGanttContentProps> = ({
} }
} else if (action === 'mouseleave') { } else if (action === 'mouseleave') {
if (ganttEvent.action === 'mouseenter') { if (ganttEvent.action === 'mouseenter') {
setTimeout(() => {
setGanttEvent({ action: '' }); setGanttEvent({ action: '' });
}, 300);
} }
} else if (action === 'dblclick') { } else if (action === 'dblclick') {
!!onDoubleClick && onDoubleClick(task); !!onDoubleClick && onDoubleClick(task);