fix: disable autocomplete in assignee search
continuous-integration/drone/push Build is failing Details

Resolves https://github.com/go-vikunja/frontend/issues/114
This commit is contained in:
kolaente 2023-06-07 21:46:18 +02:00
parent b50adaf4b5
commit 64f9f4fd88
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 10 additions and 0 deletions

View File

@ -32,6 +32,8 @@
@keydown.down.exact.prevent="() => preSelect(0)"
ref="searchInput"
@focus="handleFocus"
:autocomplete="autocompleteEnabled ? undefined : 'off'"
:spellcheck="autocompleteEnabled ? undefined : 'false'"
/>
</div>
</div>
@ -196,6 +198,13 @@ const props = defineProps({
type: Boolean,
default: true,
},
/**
* If false, the search input will get the autocomplete="off" attributes attached to it.
*/
autocompleteEnabled: {
type: Boolean,
default: true,
}
})
const emit = defineEmits<{

View File

@ -9,6 +9,7 @@
label="name"
:select-placeholder="$t('task.assignee.selectPlaceholder')"
v-model="assignees"
:autocomplete-enabled="false"
>
<template #tag="{item: user}">
<span class="assignee">