diff options
author | Noah Loomans <noahloomans@gmail.com> | 2017-12-11 19:26:56 +0100 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2017-12-11 19:26:56 +0100 |
commit | 6ef491badd4ac0190ab17cc41ebd27abbf87c896 (patch) | |
tree | 86e5250bfa255be30ac64ecb0e707f27d50e72a7 /src/client/react/components/container | |
parent | ddccdcf22bb5008022e93c4789311fb2da95d7cf (diff) |
Select search input on focus
Diffstat (limited to 'src/client/react/components/container')
-rw-r--r-- | src/client/react/components/container/Search.js | 1 |
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)); |