From 238f59dc87195164f0b7b58e1787fb2fd00b6a38 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Thu, 20 Apr 2017 14:16:45 +0100 Subject: [PATCH] return the event from RoomTile's onClick to distinguish clicks from keypresses --- src/components/views/rooms/RoomTile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/rooms/RoomTile.js b/src/components/views/rooms/RoomTile.js index 5d896e8beb..3b37d4608f 100644 --- a/src/components/views/rooms/RoomTile.js +++ b/src/components/views/rooms/RoomTile.js @@ -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); } },