fix history race on flat comment click
This commit is contained in:
parent
bb916b8669
commit
33beb1dc52
@ -81,6 +81,7 @@ export function CommentFlat ({ item, rank, siblingComments, ...props }) {
|
|||||||
<LinkToContext
|
<LinkToContext
|
||||||
className='py-2'
|
className='py-2'
|
||||||
onClick={e => {
|
onClick={e => {
|
||||||
|
e.preventDefault()
|
||||||
router.push(href, as)
|
router.push(href, as)
|
||||||
}}
|
}}
|
||||||
href={href}
|
href={href}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user