aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-05-19 13:30:15 +0300
committerGitHub <noreply@github.com>2021-05-19 13:30:15 +0300
commitdbca6d0a995b2a66a30ace2c4e6e777411594b08 (patch)
treef99add6ed5772b052df284669e4e7d3813fdb2c8
parent147d3a70ea40389d3630e4146628ca0821d7ba74 (diff)
parent3f6e55814405cb99eeec10e170a819a26b7a0c81 (diff)
Merge pull request #4 from lukasjelonek/master
Fix bug: Navigation with cursor keys does not work
-rw-r--r--autocomplete.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/autocomplete.js b/autocomplete.js
index 3350108..7a9f151 100644
--- a/autocomplete.js
+++ b/autocomplete.js
@@ -12,7 +12,7 @@ class Autocomplete {
this.dropdown = null;
field.parentNode.classList.add('dropdown');
- field.setAttribute('data-toggle', 'dropdown');
+ field.setAttribute('data-bs-toggle', 'dropdown');
field.classList.add('dropdown-toggle');
const dropdown = ce(`<div class="dropdown-menu" ></div>`);
@@ -129,4 +129,4 @@ function ce(html) {
*/
function insertAfter(elem, refElem) {
return refElem.parentNode.insertBefore(elem, refElem.nextSibling)
-} \ No newline at end of file
+}