mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02:00
Merge pull request #20409 from overleaf/dk-selectLineOnFocus-fix
Fix scroll issue when focusing a change in new review panel GitOrigin-RevId: 55784de415f65935ad9b1a8cd3ad82ea3ddac3c1
This commit is contained in:
@@ -16,7 +16,7 @@ export const ReviewPanelEntry: FC<{
|
||||
top?: number
|
||||
className?: string
|
||||
selectLineOnFocus?: boolean
|
||||
}> = ({ children, position, top, op, className, selectLineOnFocus }) => {
|
||||
}> = ({ children, position, top, op, className, selectLineOnFocus = true }) => {
|
||||
const state = useCodeMirrorStateContext()
|
||||
const view = useCodeMirrorViewContext()
|
||||
const [focused, setFocused] = useState(false)
|
||||
|
||||
Reference in New Issue
Block a user