#292 stop propagation to row click event when clicking on trashcan
This commit is contained in:
parent
f06ac10f9a
commit
f60f2310dc
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue