1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-10-31 15:21:46 +09:00

Fix: syuilo#3122 (#5435)

This commit is contained in:
MeiMei 2019-09-21 21:33:01 +09:00 committed by syuilo
parent 60d2558ed6
commit 1b7454ca77

View File

@ -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);
});
}