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:
David 2024-09-19 11:08:25 +01:00 committed by Copybot
parent 22e4c2de2c
commit af6ffdcf7c

View file

@ -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)