diff --git a/todoblue/src/app/board/[board]/TaskDisplay.tsx b/todoblue/src/app/board/[board]/TaskDisplay.tsx index 86443d0..af1184d 100644 --- a/todoblue/src/app/board/[board]/TaskDisplay.tsx +++ b/todoblue/src/app/board/[board]/TaskDisplay.tsx @@ -54,6 +54,13 @@ export function TaskDisplay({task}: {task: TaskWithId}) { > } + const conditionalToggleDisplayingActions = useCallback(() => { + if(window.getSelection()?.isCollapsed === false) { + return + } + setDisplayingActions(prev => !prev) + }, []) + return (