fix(task): focusing on assignee search field when activating it

This commit is contained in:
kolaente 2022-10-23 15:27:29 +02:00
parent d7fb1a1e14
commit 820823b5c3
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -1,8 +1,4 @@
<template>
<div
tabindex="-1"
@focus="focus"
>
<Multiselect
:loading="listUserService.loading"
:placeholder="$t('task.assignee.placeholder')"
@ -13,7 +9,7 @@
label="name"
:select-placeholder="$t('task.assignee.selectPlaceholder')"
v-model="assignees"
ref="multiselect"
ref="userSearchInputRef"
>
<template #tag="{item: user}">
<span class="assignee">
@ -24,7 +20,6 @@
</span>
</template>
</Multiselect>
</div>
</template>
<script setup lang="ts">
@ -130,12 +125,6 @@ async function findUser(query: string) {
function clearAllFoundUsers() {
foundUsers.value = []
}
const multiselect = ref()
function focus() {
multiselect.value.focus()
}
</script>
<style lang="scss" scoped>