Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[WEB-3870] fix: sidebar comment scroll #6932

Anmol Singh Bhatia642dabfe35e0
diff --git a/web/core/components/comments/comments.tsx b/web/core/components/comments/comments.tsx
index 214b1375ea..bbda0f45fb 100644
--- a/web/core/components/comments/comments.tsx
+++ b/web/core/components/comments/comments.tsx
@@ -34,12 +34,6 @@ export const CommentsWrapper: FC<TCommentsWrapper> = 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]