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:
parent
147d3a70ea
commit
3f6e558144
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user