Fix click outside the image has no action issue

pull/74/head
Victor Zhao 3 years ago
parent 9e59f604e6
commit 2bcac507c8
No known key found for this signature in database
GPG Key ID: F34B36522E3C980F

@ -10,6 +10,12 @@ ratingsContainer.addEventListener('click', (e) => {
e.target.parentNode.classList.add('active')
selectedRating = e.target.nextElementSibling.innerHTML
}
if(e.target.classList.contains('rating')) {
removeActive()
e.target.classList.add('active')
selectedRating = e.target.nextElementSibling.innerHTML
}
})
sendBtn.addEventListener('click', (e) => {

Loading…
Cancel
Save