mirror of
https://github.com/makeplane/plane.git
synced 2026-05-04 06:59:41 -05:00
[WEB-3870] fix: sidebar comment scroll #6932
This commit is contained in:
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]
|
||||
|
||||
Reference in New Issue
Block a user