Skip to content

Commit 125036f

Browse files
committed
Prevent default on event stream
1 parent 6adbc41 commit 125036f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/react-bacon.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ module.exports.BaconMixin = ((function(){
4242
if (!bus) {
4343
bus = buses[eventName] = new Bacon.Bus();
4444
this[eventName] = function sendEventToStream(event) {
45+
event.preventDefault();
46+
event.stopPropagation();
4547
bus.push(event);
4648
};
4749
}

0 commit comments

Comments
 (0)