-
-
+
+
@@ -202,14 +202,14 @@ export default {
},
computed: {
searchResultsVisible() {
- if(this.query === '' && !this.showEmpty) {
+ if (this.query === '' && !this.showEmpty) {
return false
}
return this.showSearchResults && (
- (this.filteredSearchResults.length > 0) ||
- (this.creatable && this.query !== '')
- )
+ (this.filteredSearchResults.length > 0) ||
+ (this.creatable && this.query !== '')
+ )
},
creatableAvailable() {
return this.creatable && this.query !== '' && !this.filteredSearchResults.some(elem => {
@@ -295,13 +295,8 @@ export default {
this.query = this.label !== '' ? object[this.label] : object
},
- preSelect(index, lookForCreatable = false) {
-
- if (index === 0 && this.creatable && lookForCreatable) {
- index = -1
- }
-
- if (index < -1) {
+ preSelect(index) {
+ if (index < 0) {
this.$refs.searchInput.focus()
return
}
diff --git a/src/components/tasks/partials/editLabels.vue b/src/components/tasks/partials/editLabels.vue
index a40f2113..5c03449c 100644
--- a/src/components/tasks/partials/editLabels.vue
+++ b/src/components/tasks/partials/editLabels.vue
@@ -11,6 +11,7 @@
@create="createAndAddLabel"
create-placeholder="Add this as new label"
v-model="labels"
+ :search-delay="10"
>