Skip to content

Commit

Permalink
focus hack cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyOGo committed Mar 29, 2018
1 parent a4628f2 commit e821346
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/demos/todomvc/todo-header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ class Input extends Component {
}

const TodoHeader = ({
editing,
newTodo,
handleNewTodoKeyDown,
handleChange,
Expand All @@ -80,7 +79,6 @@ const TodoHeader = ({
<Input
className="m-todo-header__new"
placeholder="What needs to be done?"
editing={editing}
value={newTodo}
onKeyDown={handleNewTodoKeyDown}
onChange={handleChange}
Expand Down
2 changes: 1 addition & 1 deletion src/demos/todomvc/todos.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class Todos extends Component {
const completedCount = todos.length - activeTodoCount;

return [
<TodoHeader newTodo={state.newTodo} editing={state.editing} handleNewTodoKeyDown={this.handleNewTodoKeyDown} handleChange={this.handleChange} key={0} />,
<TodoHeader newTodo={state.newTodo} handleNewTodoKeyDown={this.handleNewTodoKeyDown} handleChange={this.handleChange} key={0} />,
<TodosList
shownTodos={shownTodos}
onToggle={this.toggle}
Expand Down

0 comments on commit e821346

Please sign in to comment.