chore: fix scroll on click

This commit is contained in:
Aman Harwara
2023-10-18 01:57:22 +05:30
parent 7f14fe6342
commit 42543577e8

View File

@@ -698,7 +698,9 @@ const ToolbarPlugin = () => {
}
const reducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches
domElement.scrollIntoView({ behavior: reducedMotion ? 'auto' : 'smooth', block: 'nearest' })
editor.focus()
if (isMobile) {
editor.focus()
}
})
}}
>