diff --git a/src/cg-dropdown.js b/src/cg-dropdown.js index ae298db..f34d131 100644 --- a/src/cg-dropdown.js +++ b/src/cg-dropdown.js @@ -354,8 +354,6 @@ export class DropDown { } if (event) { - let list = this.#element.querySelectorAll('.list'); - if (event === 'mouseenter') { this.#element.addEventListener(event, () => { this.#open(); diff --git a/src/index.js b/src/index.js index 22b3e06..3f62d18 100644 --- a/src/index.js +++ b/src/index.js @@ -49,12 +49,9 @@ const dropdown2 = new DropDown({ value: 5, }, ], - styles: { - head: { - background: 'red', - }, - }, + multiselect: true, + event: 'mouseenter', // multiselectTag: true, });