aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Header.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Header.jsx')
-rw-r--r--src/Header.jsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Header.jsx b/src/Header.jsx
index 9e80a9c..6bed557 100644
--- a/src/Header.jsx
+++ b/src/Header.jsx
@@ -38,7 +38,10 @@ class Header extends Component {
38 if (this.props.focusOnOpen) { 38 if (this.props.focusOnOpen) {
39 // Wait one frame for the panel to be positioned before focusing 39 // Wait one frame for the panel to be positioned before focusing
40 const requestAnimationFrame = (window.requestAnimationFrame || window.setTimeout); 40 const requestAnimationFrame = (window.requestAnimationFrame || window.setTimeout);
41 requestAnimationFrame(() => this.refs.input.focus()); 41 requestAnimationFrame(() => {
42 this.refs.input.focus();
43 this.refs.input.select();
44 });
42 } 45 }
43 } 46 }
44 47