diff --git a/src/app/components/InputBox.jsx b/src/app/components/InputBox.jsx index 65c0be1..751dd2a 100644 --- a/src/app/components/InputBox.jsx +++ b/src/app/components/InputBox.jsx @@ -8,8 +8,13 @@ export default class InputBox extends React.Component { this.historyIndex = 0; } + componentDidMount(){ + this.nameInput.focus(); + } + render() { return { this.nameInput = input; }} onKeyUp={e => this.onKeyUp(e)} onKeyDown={e => this.onKeyDown(e)} className="expressionInput mono"