chore: fix scroll on click
This commit is contained in:
@@ -698,7 +698,9 @@ const ToolbarPlugin = () => {
|
|||||||
}
|
}
|
||||||
const reducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches
|
const reducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches
|
||||||
domElement.scrollIntoView({ behavior: reducedMotion ? 'auto' : 'smooth', block: 'nearest' })
|
domElement.scrollIntoView({ behavior: reducedMotion ? 'auto' : 'smooth', block: 'nearest' })
|
||||||
editor.focus()
|
if (isMobile) {
|
||||||
|
editor.focus()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user