#292 stop propagation to row click event when clicking on trashcan

This commit is contained in:
Cassie Tarakajian 2017-02-17 17:35:29 -05:00
parent f06ac10f9a
commit f60f2310dc

View file

@ -58,7 +58,8 @@ class SketchList extends React.Component {
return (
<button
className="sketch-list__trash-button"
onClick={() => {
onClick={(e) => {
e.stopPropagation();
if (window.confirm(`Are you sure you want to delete "${sketch.name}"?`)) {
this.props.deleteProject(sketch.id);
}