fix: Comment thread not focused correctly when clicking on mark, closes #5081
This commit is contained in:
@@ -94,7 +94,11 @@ export default class Comment extends Mark {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const commentId = event.target.id.replace("comment-", "");
|
const commentId = event.target.id.replace("comment-", "");
|
||||||
this.options?.onClickCommentMark?.(commentId);
|
if (commentId) {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
this.options?.onClickCommentMark?.(commentId);
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user