mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-05 12:54:39 +00:00
return the event from RoomTile's onClick to distinguish clicks from keypresses
This commit is contained in:
@@ -108,9 +108,9 @@ module.exports = React.createClass({
|
||||
});
|
||||
},
|
||||
|
||||
onClick: function() {
|
||||
onClick: function(ev) {
|
||||
if (this.props.onClick) {
|
||||
this.props.onClick(this.props.room.roomId);
|
||||
this.props.onClick(this.props.room.roomId, ev);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user