From 642dabfe35e07c6172a25a0d818de1b4c19897ca Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Tue, 15 Apr 2025 17:47:22 +0530 Subject: [PATCH] [WEB-3870] fix: sidebar comment scroll #6932 --- web/core/components/comments/comments.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/web/core/components/comments/comments.tsx b/web/core/components/comments/comments.tsx index 214b1375e..bbda0f45f 100644 --- a/web/core/components/comments/comments.tsx +++ b/web/core/components/comments/comments.tsx @@ -34,12 +34,6 @@ export const CommentsWrapper: FC = observer((props) => { entityId={entityId} activityOperations={activityOperations} projectId={projectId} - onSubmitCallback={async (elementId: string) => { - const sourceElementId = elementId ?? ""; - const sourceElement = document.getElementById(sourceElementId); - if (sourceElement) - await smoothScrollIntoView(sourceElement, { behavior: "smooth", block: "center", duration: 1500 }); - }} /> ), [isEditingAllowed, workspaceSlug, entityId, activityOperations, projectId]