aboutsummaryrefslogtreecommitdiff
path: root/src/client/react/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/react/index.js')
-rw-r--r--src/client/react/index.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/react/index.js b/src/client/react/index.js
index a7006d4..e70b442 100644
--- a/src/client/react/index.js
+++ b/src/client/react/index.js
@@ -27,3 +27,7 @@ ReactDOM.render(
</Provider>,
document.getElementById('root'),
);
+
+// We only want to focus the input on page load. NOT on a in-javascript
+// redirect. This is because that is when people usually want to start typing.
+document.querySelector('.search input').focus();