mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-13 17:05:47 +01:00
Merge pull request #1058 from ajnart/disable-search-focus-on-mobile
✨ Disable search focus on mobile
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user