Fix bug: Navigation with cursor keys does not work

data toggle field changed from `data-toggle` to `data-bs-toggle`
This commit is contained in:
Lukas Jelonek 2021-05-19 09:07:43 +02:00 committed by GitHub
parent 147d3a70ea
commit 3f6e558144
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}
}