summaryrefslogtreecommitdiffhomepage
path: root/gui/src/renderer
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/renderer')
-rw-r--r--gui/src/renderer/components/SearchBar.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/src/renderer/components/SearchBar.tsx b/gui/src/renderer/components/SearchBar.tsx
index c70e5c3de1..da2de73af0 100644
--- a/gui/src/renderer/components/SearchBar.tsx
+++ b/gui/src/renderer/components/SearchBar.tsx
@@ -89,7 +89,7 @@ export default function SearchBar(props: ISearchBarProps) {
useEffect(() => {
if (!props.disableAutoFocus) {
- inputRef.current?.focus();
+ inputRef.current?.focus({ preventScroll: true });
}
}, []);