mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05: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:
parent
22e4c2de2c
commit
af6ffdcf7c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue