1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

Merge pull request #3440 from matrix-org/dbkr/fixroomdir-itemclick

Fix: clicking on a room directory item takes you to the room
This commit is contained in:
David Baker
2019-09-13 11:00:58 +01:00
committed by GitHub

View File

@@ -487,7 +487,7 @@ module.exports = React.createClass({
); );
return ( return (
<tr key={ room.room_id } <tr key={ room.room_id }
onClick={() => this.onRoomClicked(room)} onClick={(ev) => this.onRoomClicked(room, ev)}
// cancel onMouseDown otherwise shift-clicking highlights text // cancel onMouseDown otherwise shift-clicking highlights text
onMouseDown={(ev) => {ev.preventDefault();}} onMouseDown={(ev) => {ev.preventDefault();}}
> >