fix: disable autocomplete in assignee search
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Resolves https://github.com/go-vikunja/frontend/issues/114
This commit is contained in:
parent
b50adaf4b5
commit
64f9f4fd88
|
@ -32,6 +32,8 @@
|
||||||
@keydown.down.exact.prevent="() => preSelect(0)"
|
@keydown.down.exact.prevent="() => preSelect(0)"
|
||||||
ref="searchInput"
|
ref="searchInput"
|
||||||
@focus="handleFocus"
|
@focus="handleFocus"
|
||||||
|
:autocomplete="autocompleteEnabled ? undefined : 'off'"
|
||||||
|
:spellcheck="autocompleteEnabled ? undefined : 'false'"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -196,6 +198,13 @@ const props = defineProps({
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* If false, the search input will get the autocomplete="off" attributes attached to it.
|
||||||
|
*/
|
||||||
|
autocompleteEnabled: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true,
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
label="name"
|
label="name"
|
||||||
:select-placeholder="$t('task.assignee.selectPlaceholder')"
|
:select-placeholder="$t('task.assignee.selectPlaceholder')"
|
||||||
v-model="assignees"
|
v-model="assignees"
|
||||||
|
:autocomplete-enabled="false"
|
||||||
>
|
>
|
||||||
<template #tag="{item: user}">
|
<template #tag="{item: user}">
|
||||||
<span class="assignee">
|
<span class="assignee">
|
||||||
|
|
Reference in New Issue
Block a user