From 55ead78fbfb766baf45fd0527582c81d906d2d1b Mon Sep 17 00:00:00 2001 From: gitstart-twenty <140154534+gitstart-twenty@users.noreply.github.com> Date: Fri, 15 Sep 2023 16:52:43 +0100 Subject: [PATCH] Fix: Bug with auto scroll (#1599) Co-authored-by: v1b3m --- .../editable-cell/components/EditableCellSoftFocusMode.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/modules/ui/table/editable-cell/components/EditableCellSoftFocusMode.tsx b/front/src/modules/ui/table/editable-cell/components/EditableCellSoftFocusMode.tsx index 94b515d6b..b8c873d89 100644 --- a/front/src/modules/ui/table/editable-cell/components/EditableCellSoftFocusMode.tsx +++ b/front/src/modules/ui/table/editable-cell/components/EditableCellSoftFocusMode.tsx @@ -17,7 +17,7 @@ export function EditableCellSoftFocusMode({ children }: OwnProps) { useEffect(() => { scrollRef.current?.scrollIntoView({ block: 'nearest' }); - }); + }, []); function openEditMode() { openEditableCell();