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

This commit is contained in:
Anmol Singh Bhatia
2025-04-15 17:47:22 +05:30
committed by GitHub
parent 48557cb670
commit 642dabfe35
@@ -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]