Skip to content

Commit

Permalink
Improve 'classList' mirroring
Browse files Browse the repository at this point in the history
  • Loading branch information
grafluxe committed Nov 18, 2017
1 parent d1fc916 commit 64fed4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Dropdownizer.js
Expand Up @@ -88,7 +88,8 @@ class Dropdownizer {
_setDropdown() {
this._ui.div.dropdownizer = this;
this._ui.div.style.width = this._el.offsetWidth + "px";
this._ui.div.classList = `${this._el.classList} ${CLASS_NAME}`;
this._ui.div.classList = this._el.classList;
this._ui.div.classList.add(CLASS_NAME);

this._ui.div.appendChild(this._ui.btn);
this._ui.div.appendChild(this._ui.ul);
Expand Down

0 comments on commit 64fed4f

Please sign in to comment.