mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-25 08:21:41 +02:00
return the event from RoomTile's onClick to distinguish clicks from keypresses
This commit is contained in:
parent
e69ea68133
commit
238f59dc87
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user