From 0b9161464a283e4302a985240ae6eb4105f547a1 Mon Sep 17 00:00:00 2001 From: Lisandro Mc Gough Date: Tue, 19 Mar 2019 13:10:39 -0300 Subject: [PATCH 1/3] Allow item selection using arrow keys --- src/components/VueBootstrapTypeahead.vue | 15 +++++++ src/components/VueBootstrapTypeaheadList.vue | 44 +++++++++++++++++++ .../VueBootstrapTypeaheadListItem.vue | 1 + 3 files changed, 60 insertions(+) diff --git a/src/components/VueBootstrapTypeahead.vue b/src/components/VueBootstrapTypeahead.vue index e172442..56fbff6 100644 --- a/src/components/VueBootstrapTypeahead.vue +++ b/src/components/VueBootstrapTypeahead.vue @@ -16,6 +16,7 @@ @focus="isFocused = true" @blur="handleBlur" @input="handleInput($event.target.value)" + @keydown="handleKeyDown" autocomplete="off" />
@@ -35,6 +36,7 @@ :maxMatches="maxMatches" :minMatchingChars="minMatchingChars" @hit="handleHit" + @keydown="handleKeyDown" >