mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
Fix caret jumping to start when unselecting autocomplete suggestion (#1844)
This commit is contained in:
parent
cc374996cc
commit
faa21266db
1 changed files with 2 additions and 1 deletions
|
@ -90,7 +90,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
const activeTag = tagTypes[active!];
|
const activeTag = tagTypes[active!];
|
||||||
|
|
||||||
activeName = selected ?? activeTag.name;
|
activeName = selected ?? activeTag.name;
|
||||||
activeInput.setSelectionRange(Infinity, Infinity);
|
const inputEnd = activeInput.value.length;
|
||||||
|
activeInput.setSelectionRange(inputEnd, inputEnd);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function updateTagName(tag: TagType): Promise<void> {
|
async function updateTagName(tag: TagType): Promise<void> {
|
||||||
|
|
Loading…
Reference in a new issue