mirror of
https://github.com/tchartron/blow
synced 2024-11-23 21:03:16 +00:00
update
This commit is contained in:
parent
fe9ea29b5d
commit
6da7a9b1bc
1 changed files with 3 additions and 1 deletions
|
@ -48,7 +48,9 @@ function toggleModal () {
|
|||
modal.classList.toggle('pointer-events-none')
|
||||
body.classList.toggle('modal-active')
|
||||
if ([...body.classList].includes('modal-active')) {
|
||||
document.getElementById('search-input').focus()
|
||||
window.setTimeout(function() {
|
||||
document.getElementById('search-input').focus()
|
||||
}, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue