Merge pull request #1058 from ajnart/disable-search-focus-on-mobile

✨ Disable search focus on mobile
This commit is contained in:
Thomas Camlong authored and GitHub committed 2023-06-14 13:44:47 +09:00
commit 9b25c918a8
1 file changed
+1 -1
+1 -1
View File
@@ -172,7 +172,7 @@ export function Search() {
<Autocomplete
ref={textInput}
onFocusCapture={() => setOpened(true)}
autoFocus
autoFocus={typeof window !== 'undefined' && window.innerWidth > 768}
rightSection={<SearchModuleMenu />}
placeholder={t(`searchEngines.${selectedSearchEngine.value}.description`) ?? undefined}
value={searchQuery}