fix: add a task relation with enter when only one search result is available

Resolves #2107
This commit is contained in:
kolaente 2022-07-11 20:02:35 +02:00
parent 6973d76e17
commit e8705c66dd
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -35,6 +35,7 @@
:creatable="true" :creatable="true"
:create-placeholder="$t('task.relation.createPlaceholder')" :create-placeholder="$t('task.relation.createPlaceholder')"
@create="createAndRelateTask" @create="createAndRelateTask"
@select="addTaskRelation"
> >
<template #searchResult="props"> <template #searchResult="props">
<span v-if="typeof props.option !== 'string'" class="search-result"> <span v-if="typeof props.option !== 'string'" class="search-result">