fix: fixed checklist scrolling on click (#3453)

This commit is contained in:
Henit Chobisa 2024-01-24 18:49:44 +05:30 committed by GitHub
parent e23e4bc392
commit 338d58f79d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,7 @@ export const EditorContainer = ({ editor, editorClassNames, hideDragHandle, chil
<div
id="editor-container"
onClick={() => {
editor?.chain().focus().run();
editor?.chain().focus(undefined, { scrollIntoView: false }).run();
}}
onMouseLeave={() => {
hideDragHandle?.();