mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-28 00:03:09 +02:00
Fix: syuilo#3122 (#5435)
This commit is contained in:
parent
60d2558ed6
commit
1b7454ca77
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue