OnFocus search screen.
This commit is contained in:
parent
b5450cbcf1
commit
37b26068cc
@ -42,6 +42,9 @@ window.onload = () => {
|
|||||||
function addListenersSearch() {
|
function addListenersSearch() {
|
||||||
if (searchMobile !== null) {
|
if (searchMobile !== null) {
|
||||||
searchMobile.addEventListener('click', onFakeSearchClick);
|
searchMobile.addEventListener('click', onFakeSearchClick);
|
||||||
|
fakeSearchInput.addEventListener('focus', (e) => {
|
||||||
|
onFakeSearchClick(e)
|
||||||
|
});
|
||||||
fakeSearchInput.addEventListener('change', (e) => {
|
fakeSearchInput.addEventListener('change', (e) => {
|
||||||
if (fakeSearchInput.value !== "") {
|
if (fakeSearchInput.value !== "") {
|
||||||
const searchOverlay = document.querySelector('div.search-overlay');
|
const searchOverlay = document.querySelector('div.search-overlay');
|
||||||
|
Loading…
Reference in New Issue
Block a user