Merge pull request #35669 from overleaf/mg-fix-comment-scroll

Fix scroll for adding comments in editor

GitOrigin-RevId: fa9ecb07008bfca1d2e233b4da97817cd77f9105
This commit is contained in:
Malik Glossop
2026-09-17 11:34:27 +00:00
committed by Copybot
parent b4d2d11c7b
commit 03ddb0de69
@@ -123,7 +123,8 @@ export const MentionsInput = forwardRef<
() => ({
focus: () => {
if (viewRef.current) {
viewRef.current.focus()
// Ensure that the input can be scrolled into view
viewRef.current.contentDOM.focus({ preventScroll: false })
return true
}
return false