fix: Comment thread not focused correctly when clicking on mark, closes #5081

This commit is contained in:
Tom Moor
2023-03-22 21:49:52 -04:00
parent e86f17a6f0
commit 114019c4d8

View File

@@ -94,7 +94,11 @@ export default class Comment extends Mark {
}
const commentId = event.target.id.replace("comment-", "");
this.options?.onClickCommentMark?.(commentId);
if (commentId) {
event.preventDefault();
event.stopPropagation();
this.options?.onClickCommentMark?.(commentId);
}
return false;
},