1
0

fix(filters): correctly replace values when clicking on an autocomplete result

Related https://kolaente.dev/vikunja/vikunja/issues/2194
This commit is contained in:
kolaente
2024-03-14 09:02:57 +01:00
parent c8b35d49ca
commit 6cf3a578c0
2 changed files with 11 additions and 1 deletions

View File

@ -222,7 +222,7 @@ function handleFieldInput() {
autocompleteResults.value = projectStore.searchProject(search)
}
autocompleteMatchText.value = keyword
autocompleteMatchPosition.value = prefix.length - 1 + keyword.replace(search, '').length
autocompleteMatchPosition.value = match.index + prefix.length - 1 + keyword.replace(search, '').length
}
}
})