mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 19:19:52 +02:00
fix: no scroll on desktop
This commit is contained in:
1 parent
4206395f49
commit
96b4ab4380
2 files changed
+6
-4
No files matched your search
@@ -19,6 +19,7 @@ import {
|
||||
import { go } from 'fuzzysort';
|
||||
import { debounce } from 'lodash';
|
||||
import { useRef, useState } from 'react';
|
||||
import { isMobile } from 'react-device-detect';
|
||||
import { NAVBAR_HEIGHT } from '../../components/Navbar';
|
||||
import { UNLOCALIZED_REGION_NAMES_SHORT } from '../../constants/regions';
|
||||
import searchPlayersAcrossRegions, {
|
||||
@@ -144,7 +145,7 @@ export function Hero() {
|
||||
}
|
||||
}}
|
||||
onFocus={() => {
|
||||
if (!search.current) return;
|
||||
if (!search.current || !isMobile) return;
|
||||
|
||||
const sanitized = search.current.value.trim();
|
||||
setShowSearch(sanitized.length > 0);
|
||||
|
||||
Reference in new issue
Block a user