Skip to content
Snippets Groups Projects
Commit 1b7454ca authored by MeiMei's avatar MeiMei Committed by syuilo
Browse files

Fix: syuilo#3122 (#5435)

parent 60d2558e
No related branches found
No related tags found
No related merge requests found
......@@ -240,7 +240,7 @@ class Autocomplete {
// キャレットを戻す
this.vm.$nextTick(() => {
this.textarea.focus();
const pos = trimmedBefore.length + (value.startsWith(':') ? value.length : 1);
const pos = trimmedBefore.length + value.length;
this.textarea.setSelectionRange(pos, pos);
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment