From 83feea56e2f78e0287159023b7b3a7f7f27efb97 Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Sat, 12 May 2018 14:19:13 +0300 Subject: [PATCH] fix scroll to the same parent comment or to the pinned one --- web/app/components/comment/comment.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/components/comment/comment.jsx b/web/app/components/comment/comment.jsx index 7edcddee..7651ba66 100644 --- a/web/app/components/comment/comment.jsx +++ b/web/app/components/comment/comment.jsx @@ -187,6 +187,7 @@ export default class Comment extends Component { e.preventDefault(); + window.location.hash = ''; window.location.hash = `#${COMMENT_NODE_CLASSNAME_PREFIX}${pid}`; } @@ -249,7 +250,7 @@ export default class Comment extends Component { } return ( -
+