diff --git a/apps/client/src/widgets/collections/board/card.tsx b/apps/client/src/widgets/collections/board/card.tsx index 342f781ad..917fecefd 100644 --- a/apps/client/src/widgets/collections/board/card.tsx +++ b/apps/client/src/widgets/collections/board/card.tsx @@ -36,6 +36,7 @@ export default function Card({ const colorClass = note.getColorClass() || ''; const editorRef = useRef(null); const isArchived = note.isArchived; + const [ isVisible, setVisible ] = useState(true); const [ title, setTitle ] = useState(note.title); const handleDragStart = useCallback((e: DragEvent) => { @@ -70,6 +71,10 @@ export default function Card({ setTitle(note.title); }, [ note ]); + useEffect(() => { + setVisible(!isDragging); + }, [ isDragging ]); + return (
{!isEditing ? ( <>