Focus search bar on open

This commit is contained in:
Robbie Antenesse 2019-05-07 10:45:25 -06:00
parent 4cad266d52
commit 1a22fbd699
1 changed files with 1 additions and 0 deletions

View File

@ -94,6 +94,7 @@ function setupSearchBar() {
}); });
openSearchModal.addEventListener('click', () => { openSearchModal.addEventListener('click', () => {
document.getElementById('searchModal').style.display = 'block'; document.getElementById('searchModal').style.display = 'block';
searchBox.focus();
}); });
searchExactWords.addEventListener('change', () => { searchExactWords.addEventListener('change', () => {