OnFocus search screen.

This commit is contained in:
Sergiotarxz 2023-09-04 18:07:36 +02:00
parent b5450cbcf1
commit 37b26068cc
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,9 @@ window.onload = () => {
function addListenersSearch() {
if (searchMobile !== null) {
searchMobile.addEventListener('click', onFakeSearchClick);
fakeSearchInput.addEventListener('focus', (e) => {
onFakeSearchClick(e)
});
fakeSearchInput.addEventListener('change', (e) => {
if (fakeSearchInput.value !== "") {
const searchOverlay = document.querySelector('div.search-overlay');