diff --git a/src/components/views/rooms/AuxPanel.js b/src/components/views/rooms/AuxPanel.js index 10a411aea9..4eaa19193e 100644 --- a/src/components/views/rooms/AuxPanel.js +++ b/src/components/views/rooms/AuxPanel.js @@ -57,12 +57,14 @@ module.exports = React.createClass({ } }, - onConferenceNotificationClick: function(type) { + onConferenceNotificationClick: function(ev, type) { dis.dispatch({ action: 'place_call', type: type, room_id: this.props.room.roomId, }); + ev.stopPropagation(); + ev.preventDefault(); }, render: function() { @@ -91,7 +93,8 @@ module.exports = React.createClass({ } else { joinText = ( - Join as voice or video. + Join as { this.onConferenceNotificationClick(event, 'voice')}} href="#">voice  + or { this.onConferenceNotificationClick(event, 'video') }} href="#">video. ); }