mirror of
https://github.com/pawelmalak/flame.git
synced 2025-08-04 10:25:17 +02:00
Remove search auto focus
Major annoyance for mobile devices. Mostly tablets that have large keyboards in landscape. You're forced to dismiss the keyboard every time you load the page.
This commit is contained in:
parent
6f44200a3c
commit
0fc0ff6c49
1 changed files with 0 additions and 4 deletions
|
@ -23,10 +23,6 @@ const SearchBar = (props: ComponentProps): JSX.Element => {
|
|||
|
||||
const inputRef = useRef<HTMLInputElement>(document.createElement('input'));
|
||||
|
||||
useEffect(() => {
|
||||
inputRef.current.focus();
|
||||
}, []);
|
||||
|
||||
const searchHandler = (e: KeyboardEvent<HTMLInputElement>) => {
|
||||
const { isLocal, search, query, isURL, sameTab } = searchParser(
|
||||
inputRef.current.value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue