mirror of
https://github.com/usatiuk/ustk-todolist.git
synced 2025-10-28 23:57:49 +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',
|
color: this.props.todo.completed ? '#888888' : 'black',
|
||||||
}}
|
}}
|
||||||
className="todo"
|
className="todo"
|
||||||
onClick={this.props.toggleTodo}
|
onClick={() => {
|
||||||
|
this.onMouseOut();
|
||||||
|
this.props.toggleTodo();
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{this.props.todo.text}
|
{this.props.todo.text}
|
||||||
</ButtonBase>
|
</ButtonBase>
|
||||||
|
|||||||
Reference in New Issue
Block a user