mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user