Skip to content

Commit 6014ea3

Browse files
imlucaskangas
authored andcommitted
Fix onClick bug that was making the app act crazy pants
The click was bubbling all the way up to the router.
1 parent 6cf498b commit 6014ea3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sidebar/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ var CollectionListView = View.extend({
4646
click: '_onClick'
4747
},
4848
template: require('./collection-list-item.jade'),
49-
_onClick: function() {
49+
_onClick: function(event) {
50+
event.preventDefault();
51+
event.stopPropagation();
5052
this.parent.show(this.model);
5153
}
5254
}),

0 commit comments

Comments
 (0)