aboutsummaryrefslogtreecommitdiff
path: root/src/client/react/components/container
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2017-12-11 19:26:56 +0100
committerNoah Loomans <noahloomans@gmail.com>2017-12-11 19:26:56 +0100
commit6ef491badd4ac0190ab17cc41ebd27abbf87c896 (patch)
tree86e5250bfa255be30ac64ecb0e707f27d50e72a7 /src/client/react/components/container
parentddccdcf22bb5008022e93c4789311fb2da95d7cf (diff)
Select search input on focus
Diffstat (limited to 'src/client/react/components/container')
-rw-r--r--src/client/react/components/container/Search.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/react/components/container/Search.js b/src/client/react/components/container/Search.js
index f17a517..4517191 100644
--- a/src/client/react/components/container/Search.js
+++ b/src/client/react/components/container/Search.js
@@ -15,6 +15,7 @@ const mapDispatchToProps = dispatch => ({
},
onFocus: () => {
dispatch(focusChange(true));
+ document.querySelector('#search__input').select();
},
onBlur: () => {
dispatch(focusChange(false));