From 3cf8f2668018e8e9402e05d3abedb8519a7b9ccb Mon Sep 17 00:00:00 2001 From: Raunak Singh Jolly Date: Thu, 27 Jun 2024 22:54:58 +0530 Subject: [PATCH] Fixed: Drag and Drop Causes Flashing and Disappearing Cards #6001 by setting root to document's viewport --- .../record-board-card/components/RecordBoardCard.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/twenty-front/src/modules/object-record/record-board/record-board-card/components/RecordBoardCard.tsx b/packages/twenty-front/src/modules/object-record/record-board/record-board-card/components/RecordBoardCard.tsx index ddf7a99c3d1e..3e1a1711312c 100644 --- a/packages/twenty-front/src/modules/object-record/record-board/record-board-card/components/RecordBoardCard.tsx +++ b/packages/twenty-front/src/modules/object-record/record-board/record-board-card/components/RecordBoardCard.tsx @@ -23,7 +23,6 @@ import { Checkbox, CheckboxVariant } from '@/ui/input/components/Checkbox'; import { contextMenuIsOpenState } from '@/ui/navigation/context-menu/states/contextMenuIsOpenState'; import { contextMenuPositionState } from '@/ui/navigation/context-menu/states/contextMenuPositionState'; import { AnimatedEaseInOut } from '@/ui/utilities/animation/components/AnimatedEaseInOut'; -import { ScrollWrapperContext } from '@/ui/utilities/scroll/components/ScrollWrapper'; const StyledBoardCard = styled.div<{ selected: boolean }>` background-color: ${({ theme, selected }) => @@ -199,10 +198,7 @@ export const RecordBoardCard = () => { return [updateEntity, { loading: false }]; }; - const scrollWrapperRef = useContext(ScrollWrapperContext); - const { ref: cardRef, inView } = useInView({ - root: scrollWrapperRef.current, rootMargin: '1000px', });