mirror of
https://github.com/usatiuk/ustk-todolist.git
synced 2025-10-28 15:47:48 +01:00
doesnt trigger todo actions when tapping todo (actually, it does)
This commit is contained in:
@@ -80,7 +80,10 @@ class Todo extends React.Component {
|
||||
color: this.props.todo.completed ? '#888888' : 'black',
|
||||
}}
|
||||
className="todo"
|
||||
onClick={this.props.toggleTodo}
|
||||
onClick={() => {
|
||||
this.onMouseOut();
|
||||
this.props.toggleTodo();
|
||||
}}
|
||||
>
|
||||
{this.props.todo.text}
|
||||
</ButtonBase>
|
||||
|
||||
Reference in New Issue
Block a user