aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/web/src/components/Search/Searches.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/web/src/components/Search/Searches.js b/src/web/src/components/Search/Searches.js
index 60a1d358..46a9f709 100644
--- a/src/web/src/components/Search/Searches.js
+++ b/src/web/src/components/Search/Searches.js
@@ -106,6 +106,7 @@ const Searches = ({ server }) => {
try {
ref.value = '';
+ ref.focus();
} catch {
// we are probably repeating an existing search; the input isn't mounted. no-op.
}
@@ -185,6 +186,8 @@ const Searches = ({ server }) => {
history.replace(match.url.replace(`/${searchId}`, ''));
}
+ inputRef?.current?.inputRef?.current.focus();
+
return (
<>
<Segment className='search-segment' raised>