1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-13 08:02:38 +03:00

return the event from RoomTile's onClick to distinguish clicks from keypresses

This commit is contained in:
Matthew Hodgson
2017-04-20 14:16:45 +01:00
parent e69ea68133
commit 238f59dc87

View File

@@ -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);
}
},