From 5f2af069a5b34f7855b0d442368fa14d6a17df33 Mon Sep 17 00:00:00 2001 From: Tatu Wikman Date: Wed, 20 Dec 2023 18:15:53 +0200 Subject: [PATCH] lint --- src/js/modules/ps_searchbar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/modules/ps_searchbar.ts b/src/js/modules/ps_searchbar.ts index 0259a6cfa..d8ec16bdb 100644 --- a/src/js/modules/ps_searchbar.ts +++ b/src/js/modules/ps_searchbar.ts @@ -28,7 +28,7 @@ const initSearchbar = () => { // if input has text then submit search when clicking on the icon // usability for people without "enter" key searchIcon?.addEventListener('click', () => { - if(searchInput?.value) { + if (searchInput?.value) { searchInput?.form?.submit(); } });