This commit is contained in:
Thomas Chartron 2021-11-07 11:52:57 +01:00
parent 61db453fd9
commit fe9ea29b5d

View file

@ -47,7 +47,7 @@ function toggleModal () {
modal.classList.toggle('opacity-0')
modal.classList.toggle('pointer-events-none')
body.classList.toggle('modal-active')
if ([...modal.classList].includes('modal-active')) {
if ([...body.classList].includes('modal-active')) {
document.getElementById('search-input').focus()
}
}