You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2019/10/29 18:30:29 UTC
[airavata-django-portal] branch master updated: Fixing bug when
Enter typed but no suggestions
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
The following commit(s) were added to refs/heads/master by this push:
new 508d8c5 Fixing bug when Enter typed but no suggestions
508d8c5 is described below
commit 508d8c5d49f1f566a488071599b9e2e3d295d1cf
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Tue Oct 29 14:26:49 2019 -0400
Fixing bug when Enter typed but no suggestions
---
django_airavata/static/common/js/components/AutocompleteTextInput.vue | 3 +++
1 file changed, 3 insertions(+)
diff --git a/django_airavata/static/common/js/components/AutocompleteTextInput.vue b/django_airavata/static/common/js/components/AutocompleteTextInput.vue
index b1bf8e8..59071e6 100644
--- a/django_airavata/static/common/js/components/AutocompleteTextInput.vue
+++ b/django_airavata/static/common/js/components/AutocompleteTextInput.vue
@@ -61,6 +61,9 @@ export default {
this.searchValue = value;
},
enter() {
+ if (this.filtered.length === 0) {
+ return;
+ }
this.emitSelectedItem(this.current);
this.searchValue = "";
this.open = false;