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(); } });