Skip to content
Snippets Groups Projects
Commit ea62ca99 authored by Olivia206's avatar Olivia206
Browse files

Removed class and tests

parent 1600d549
No related branches found
No related tags found
No related merge requests found
const CLASSES = {
DropdownOpened: 'is-opened'
};
class Dropdown {
constructor (selector) {
this.element = document.querySelector(selector);
......@@ -26,7 +22,6 @@ class Dropdown {
this.state.isOpened = open;
classAction = this.state.isOpened ? 'add' : 'remove';
this.dropdownButton.setAttribute('aria-expanded', this.state.isOpened);
this.element.classList[classAction](CLASSES.DropdownOpened);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment