From 014e72b13f893a1a0f9eba74ffd0b95e4d6b7a7d Mon Sep 17 00:00:00 2001 From: MaxOvs Date: Tue, 11 Oct 2022 17:16:07 +0300 Subject: [PATCH] Removing exsess variables --- src/cg-dropdown.js | 2 -- src/index.js | 7 ++----- 2 files changed, 2 insertions(+), 7 deletions(-) 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, });