mirror of https://github.com/vector-im/riot-web
Merge pull request #3439 from matrix-org/bwindels/fixroomdir-itemclick
Fix: clicking on a room directory item takes you to the roompull/21833/head
commit
fcfdcb4fd3
|
@ -486,7 +486,7 @@ module.exports = createReactClass({
|
||||||
);
|
);
|
||||||
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();}}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue