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

keep comments on enter

parent ee4e8a0c
No related branches found
No related tags found
No related merge requests found
Pipeline #60042 passed with stages
in 4 minutes and 25 seconds
......@@ -28,14 +28,11 @@ const getComment = (state, context) => {
context.setOption({ activeComment: last(commentData) });
return last(commentData);
}
setTimeout(() => {
// context.setOption({ activeComment: undefined });
}, 1500);
context.setOption({ activeComment: undefined });
return undefined;
}
setTimeout(() => {
// context.setOption({ activeComment: undefined });
}, 1500);
return undefined;
};
......
......@@ -223,6 +223,7 @@ export default class CommentState {
if (ystate?.binding && ystate?.binding.mapping) {
this.updateCommentPostions(ystate);
this.createDecorations(state);
return this;
// eslint-disable-next-line no-else-return
} else {
......
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