document.addEventListener('DOMContentLoaded', function() {
let $btn = document.querySelector('.modal-open');
let $input = document.querySelector('#search_query');
$btn.addEventListener('click', function() {
setTimeout(function(){
$input.focus();
}, 100);
});
});