const shirt = document.querySelector('.shirt');
const size = document.querySelector('.size')
shirt.addEventListener('input', function(e){
console.log(e.currentTarget);
if (shirt.options[1].value) {
size.classList.add('show')
}else if (shirt.options[0].value) {
size.classList.remove('show')
}
})
이렇게 작성했는데 모자를 선택할때 size 셀렉터가 사라지지 않습니다.
뭐가 문제일까요 ??