fix(filters): clear autocomplete results when starting the next character
This commit is contained in:
parent
6cf3a578c0
commit
96186250f4
@ -189,6 +189,7 @@ const projectStore = useProjectStore()
|
||||
function handleFieldInput() {
|
||||
const cursorPosition = filterInput.value.selectionStart
|
||||
const textUpToCursor = filterQuery.value.substring(0, cursorPosition)
|
||||
autocompleteResults.value = []
|
||||
|
||||
AUTOCOMPLETE_FIELDS.forEach(field => {
|
||||
const pattern = new RegExp('(' + field + '\\s*' + FILTER_OPERATORS_REGEX + '\\s*)([\'"]?)([^\'"&|()]+\\1?)?$', 'ig')
|
||||
|
Loading…
x
Reference in New Issue
Block a user