'use strict';
const selects = document.querySelectorAll('select');
selects.forEach((item, i, selects) => {
item.addEventListener('mousedown', dropDown);
});
function dropDown(e) {
e.preventDefault();
let list = this.closest('.select-wrap').querySelector('.select-list');
if (list.classList.contains('hide')) {
list.classList.remove('hide');
} else {
list.classList.add('hide');
}
}