fix(filters): correctly replace values when clicking on an autocomplete result
Related https://kolaente.dev/vikunja/vikunja/issues/2194
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user