Skip to content
Snippets Groups Projects
Commit 3a9d3389 authored by chris's avatar chris
Browse files

temp

parent 09db6ff3
No related branches found
No related tags found
1 merge request!177Fixes
......@@ -120,7 +120,10 @@ export default ({ comment, top, commentId, recalculateTops }) => {
if (markPosition.from < minPos) minPos = markPosition.from;
if (markPosition.to > maxPos) maxPos = markPosition.to;
});
console.log(minPos, maxPos);
if (allCommentsWithSameId.length > 1);
maxPos += last(allCommentsWithSameId).node.nodeSize;
console.log(minPos, maxPos);
dispatch(state.tr.removeMark(minPos, maxPos, commentMark));
activeView.focus();
};
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment